Lines Matching full:trim
324 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument
336 if (trim) { in rs5c372_get_trim()
337 dev_dbg(&client->dev, "%s: raw trim=%x\n", __func__, tmp); in rs5c372_get_trim()
350 *trim = tmp; in rs5c372_get_trim()
478 int err, osc, trim; in rs5c372_rtc_proc() local
480 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc()
484 seq_printf(seq, "trim\t\t: %d\n", trim); in rs5c372_rtc_proc()
681 int err, trim; in rs5c372_sysfs_show_trim() local
683 err = rs5c372_get_trim(to_i2c_client(dev), NULL, &trim); in rs5c372_sysfs_show_trim()
687 return sprintf(buf, "%d\n", trim); in rs5c372_sysfs_show_trim()
689 static DEVICE_ATTR(trim, S_IRUGO, rs5c372_sysfs_show_trim, NULL);