hym8563
#define clkout_hw_to_hym8563(_hw) container_of(_hw, struct hym8563, clkout_hw)
struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
struct i2c_client *client = hym8563->client;
struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
struct i2c_client *client = hym8563->client;
struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
struct i2c_client *client = hym8563->client;
struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
struct i2c_client *client = hym8563->client;
static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563)
struct i2c_client *client = hym8563->client;
hym8563->clkout_hw.init = &init;
clk = clk_register(&client->dev, &hym8563->clkout_hw);
struct hym8563 *hym8563 = (struct hym8563 *)dev_id;
struct i2c_client *client = hym8563->client;
rtc_lock(hym8563->rtc);
rtc_unlock(hym8563->rtc);
struct hym8563 *hym8563;
hym8563 = devm_kzalloc(&client->dev, sizeof(*hym8563), GFP_KERNEL);
if (!hym8563)
hym8563->rtc = devm_rtc_allocate_device(&client->dev);
if (IS_ERR(hym8563->rtc))
return PTR_ERR(hym8563->rtc);
hym8563->client = client;
i2c_set_clientdata(client, hym8563);
client->name, hym8563);
hym8563->rtc->ops = &hym8563_rtc_ops;
set_bit(RTC_FEATURE_ALARM_RES_MINUTE, hym8563->rtc->features);
clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, hym8563->rtc->features);
hym8563_clkout_register_clk(hym8563);
return devm_rtc_register_device(hym8563->rtc);