Lines Matching defs:m41t80
75 { "m41t80", M41T80_FEATURE_SQ },
98 .compatible = "st,m41t80",
160 struct m41t80_data *m41t80 = i2c_get_clientdata(client);
161 struct mutex *lock = &m41t80->rtc->ops_lock;
186 rtc_update_irq(m41t80->rtc, 1, events);
439 static unsigned long m41t80_get_freq(struct m41t80_data *m41t80)
441 struct i2c_client *client = m41t80->client;
442 int reg_sqw = (m41t80->features & M41T80_FEATURE_SQ_ALT) ?
472 struct m41t80_data *m41t80 = sqw_to_m41t80_data(hw);
473 struct i2c_client *client = m41t80->client;
474 int reg_sqw = (m41t80->features & M41T80_FEATURE_SQ_ALT) ?
493 m41t80->freq = m41t80_decode_freq(val);
499 struct m41t80_data *m41t80 = sqw_to_m41t80_data(hw);
500 struct i2c_client *client = m41t80->client;
513 m41t80->sqwe = enable;
541 static struct clk *m41t80_sqw_register_clk(struct m41t80_data *m41t80)
543 struct i2c_client *client = m41t80->client;
558 init.name = "m41t80-sqw";
563 m41t80->sqw.init = &init;
564 m41t80->freq = m41t80_get_freq(m41t80);
570 clk = clk_register(&client->dev, &m41t80->sqw);
909 "m41t80", client);
1003 .name = "rtc-m41t80",