Thread (7 messages) flat view 7 messages, 4 authors, 2022-11-05

Re: [PATCH v2 1/2] drivers: rtc: add max313xx series rtc driver

From: Guenter Roeck <linux@roeck-us.net>
Date: 2022-10-26 14:54:11
Also in: linux-hwmon, linux-rtc, lkml

On 10/26/22 06:11, Ibrahim Tilki wrote:
Adding support for Analog Devices MAX313XX series RTCs.

Signed-off-by: Ibrahim Tilki <redacted>
Signed-off-by: Zeynep Arslanbenzer <redacted>
Nit below, otherwise for hwmon:

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
---
[ ... ]
+
+	if (max313xx->chip->temp_reg) {
+		hwmon = devm_hwmon_device_register_with_info(dev, client->name,
+							     max313xx,
+							     &max313xx_chip_info,
+							     NULL);
+		if (IS_ERR(hwmon))
+			dev_warn(dev, "cannot register hwmon device: %li\n",
+				 PTR_ERR(hwmon));
You could use %pe here and just pass hwmon as parameter.
+	}
+
+	return max313xx_trickle_charger_setup(dev);
+}
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help