Home
last modified time | relevance | path

Searched refs:tcs_val (Results 1 – 2 of 2) sorted by relevance

/drivers/char/
Dds1302.c242 int tcs_val; in rtc_ioctl() local
247 if(copy_from_user(&tcs_val, (int*)arg, sizeof(int))) in rtc_ioctl()
251 tcs_val = RTC_TCR_PATTERN | (tcs_val & 0x0F); in rtc_ioctl()
252 ds1302_writereg(RTC_TRICKLECHARGER, tcs_val); in rtc_ioctl()
/drivers/rtc/
Drtc-ds1302.c188 int tcs_val; in ds1302_rtc_ioctl() local
190 if (copy_from_user(&tcs_val, (int __user *)arg, sizeof(int))) in ds1302_rtc_ioctl()
193 ds1302_writebyte(RTC_ADDR_TCR, (0xa0 | tcs_val * 0xf)); in ds1302_rtc_ioctl()