Lines Matching defs:hym8563
78 struct hym8563 {
283 #define clkout_hw_to_hym8563(_hw) container_of(_hw, struct hym8563, clkout_hw)
295 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
296 struct i2c_client *client = hym8563->client;
321 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
322 struct i2c_client *client = hym8563->client;
342 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
343 struct i2c_client *client = hym8563->client;
369 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
370 struct i2c_client *client = hym8563->client;
388 static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563)
390 struct i2c_client *client = hym8563->client;
401 init.name = "hym8563-clkout";
406 hym8563->clkout_hw.init = &init;
412 clk = clk_register(&client->dev, &hym8563->clkout_hw);
423 * hym8563, while the timer interrupt uses a falling edge.
429 struct hym8563 *hym8563 = (struct hym8563 *)dev_id;
430 struct i2c_client *client = hym8563->client;
431 struct mutex *lock = &hym8563->rtc->ops_lock;
520 struct hym8563 *hym8563;
523 hym8563 = devm_kzalloc(&client->dev, sizeof(*hym8563), GFP_KERNEL);
524 if (!hym8563)
527 hym8563->client = client;
528 i2c_set_clientdata(client, hym8563);
542 client->name, hym8563);
558 hym8563->rtc = devm_rtc_device_register(&client->dev, client->name,
560 if (IS_ERR(hym8563->rtc))
561 return PTR_ERR(hym8563->rtc);
563 /* the hym8563 alarm only supports a minute accuracy */
564 hym8563->rtc->uie_unsupported = 1;
567 hym8563_clkout_register_clk(hym8563);
574 { "hym8563", 0 },
580 { .compatible = "haoyu,hym8563" },
587 .name = "rtc-hym8563",