Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/rtc/
Drtc-max6902.c28 static int max6902_set_reg(struct device *dev, unsigned char address, in max6902_set_reg() function
92 max6902_set_reg(dev, MAX6902_REG_CONTROL, 0); in max6902_set_time()
94 max6902_set_reg(dev, MAX6902_REG_SECONDS, bin2bcd(dt->tm_sec)); in max6902_set_time()
95 max6902_set_reg(dev, MAX6902_REG_MINUTES, bin2bcd(dt->tm_min)); in max6902_set_time()
96 max6902_set_reg(dev, MAX6902_REG_HOURS, bin2bcd(dt->tm_hour)); in max6902_set_time()
98 max6902_set_reg(dev, MAX6902_REG_DATE, bin2bcd(dt->tm_mday)); in max6902_set_time()
99 max6902_set_reg(dev, MAX6902_REG_MONTH, bin2bcd(dt->tm_mon + 1)); in max6902_set_time()
100 max6902_set_reg(dev, MAX6902_REG_DAY, bin2bcd(dt->tm_wday)); in max6902_set_time()
101 max6902_set_reg(dev, MAX6902_REG_YEAR, bin2bcd(dt->tm_year % 100)); in max6902_set_time()
102 max6902_set_reg(dev, MAX6902_REG_CENTURY, bin2bcd(dt->tm_year / 100)); in max6902_set_time()
[all …]