Skip to contentSkip to conversation

hwmon: corsair-cpro: use NULL instead of 0

PATCH Applied Marius Zachmann 2 participants 2 messages Dec 11, 2023

Subsystems (2)
lore
Share & tools
lore

Marius Zachmann

author maintainer
#0 lore raw

PATCH 1/1 hwmon: corsair-cpro: use NULL instead of 0

Replaces the integer 0 with NULL.

---
 drivers/hwmon/corsair-cpro.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/corsair-cpro.c +1 -1
index 463ab4296ede..a284a02839fb 100644
@@ -524,7 +524,7 @@ static int ccp_probe(struct hid_device *hdev, const struct hid_device_id *id)
 	if (ret)
 		goto out_hw_close;
 	ccp->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsaircpro",
-							 ccp, &ccp_chip_info, 0);
+							 ccp, &ccp_chip_info, NULL);
 	if (IS_ERR(ccp->hwmon_dev)) {
 		ret = PTR_ERR(ccp->hwmon_dev);
 		goto out_hw_close;
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 5 lines · Marius Zachmann

Replaces the integer 0 with NULL.

Applied.

Thanks,
Guenter

Quoted 17 lines
---
 drivers/hwmon/corsair-cpro.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/corsair-cpro.c +1 -1
index 463ab4296ede..a284a02839fb 100644
@@ -524,7 +524,7 @@ static int ccp_probe(struct hid_device *hdev, const struct hid_device_id *id)
 	if (ret)
 		goto out_hw_close;
 	ccp->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsaircpro",
-							 ccp, &ccp_chip_info, 0);
+							 ccp, &ccp_chip_info, NULL);
 	if (IS_ERR(ccp->hwmon_dev)) {
 		ret = PTR_ERR(ccp->hwmon_dev);
 		goto out_hw_close;