aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/hid-alps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c
index b7091507c33f..aec253b44156 100644
--- a/drivers/hid/hid-alps.c
+++ b/drivers/hid/hid-alps.c
@@ -223,20 +223,20 @@ static int t4_read_write_register(struct hid_device *hdev, u32 address,
223 223
224 if (*(u32 *)&readbuf[6] != address) { 224 if (*(u32 *)&readbuf[6] != address) {
225 dev_err(&hdev->dev, "read register address error (%x,%x)\n", 225 dev_err(&hdev->dev, "read register address error (%x,%x)\n",
226 *(u32 *)&readbuf[6], address); 226 *(u32 *)&readbuf[6], address);
227 goto exit_readbuf; 227 goto exit_readbuf;
228 } 228 }
229 229
230 if (*(u16 *)&readbuf[10] != 1) { 230 if (*(u16 *)&readbuf[10] != 1) {
231 dev_err(&hdev->dev, "read register size error (%x)\n", 231 dev_err(&hdev->dev, "read register size error (%x)\n",
232 *(u16 *)&readbuf[10]); 232 *(u16 *)&readbuf[10]);
233 goto exit_readbuf; 233 goto exit_readbuf;
234 } 234 }
235 235
236 check_sum = t4_calc_check_sum(readbuf, 6, 7); 236 check_sum = t4_calc_check_sum(readbuf, 6, 7);
237 if (*(u16 *)&readbuf[13] != check_sum) { 237 if (*(u16 *)&readbuf[13] != check_sum) {
238 dev_err(&hdev->dev, "read register checksum error (%x,%x)\n", 238 dev_err(&hdev->dev, "read register checksum error (%x,%x)\n",
239 *(u16 *)&readbuf[13], check_sum); 239 *(u16 *)&readbuf[13], check_sum);
240 goto exit_readbuf; 240 goto exit_readbuf;
241 } 241 }
242 242