Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Zhou Xingxing <zhou_x1@hoperun.com>
Link: https://lore.kernel.org/r/1607334545-2091-1-git-send-email-zhou_x1@hoperun.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zhou Xingxing and committed by
Greg Kroah-Hartman
a73a0712 3f618ab3

+2 -2
+2 -2
drivers/misc/isl29003.c
··· 127 127 static int isl29003_get_mode(struct i2c_client *client) 128 128 { 129 129 return __isl29003_read_reg(client, ISL29003_REG_COMMAND, 130 - ISL29003_RES_MASK, ISL29003_RES_SHIFT); 130 + ISL29003_MODE_MASK, ISL29003_MODE_SHIFT); 131 131 } 132 132 133 133 static int isl29003_set_mode(struct i2c_client *client, int mode) 134 134 { 135 135 return __isl29003_write_reg(client, ISL29003_REG_COMMAND, 136 - ISL29003_RES_MASK, ISL29003_RES_SHIFT, mode); 136 + ISL29003_MODE_MASK, ISL29003_MODE_SHIFT, mode); 137 137 } 138 138 139 139 /* power_state */