Skip to contentSkip to conversation

misc: isl29003: Fix typo for get/set mode

PATCH New Zhou Xingxing 1 participant 1 message Dec 7, 2020 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: isl29003: Fix typo for get/set mode

The operation of get/set mode was same with get/set resolution. It is a typo absolutely. This patch updates these bits operated by get/set mode.

---
 drivers/misc/isl29003.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/isl29003.c +2 -2
index c12406f..703d20e 100644
@@ -127,13 +127,13 @@ static int isl29003_set_resolution(struct i2c_client *client, int res)
 static int isl29003_get_mode(struct i2c_client *client)
 {
 	return __isl29003_read_reg(client, ISL29003_REG_COMMAND,
-		ISL29003_RES_MASK, ISL29003_RES_SHIFT);
+		ISL29003_MODE_MASK, ISL29003_MODE_SHIFT);
 }
 
 static int isl29003_set_mode(struct i2c_client *client, int mode)
 {
 	return __isl29003_write_reg(client, ISL29003_REG_COMMAND,
-		ISL29003_RES_MASK, ISL29003_RES_SHIFT, mode);
+		ISL29003_MODE_MASK, ISL29003_MODE_SHIFT, mode);
 }
 
 /* power_state */
Signature · 1 line
2.7.4