drv2624: fix shift overflow warning
authorYaroslav Furman <yaro330@gmail.com>
Fri, 22 Jun 2018 18:51:01 +0000 (21:51 +0300)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 15:08:48 +0000 (01:08 +1000)
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
include/linux/drv2624.h

index 2b4097e7fb2f3a49863e0e05f96aacc2a781cdc8..63828dbedc159c7da5676f58461bb983525c2de9 100755 (executable)
@@ -321,7 +321,7 @@ struct drv2624_diag_result {
        unsigned char mnDiagK;
 };
 
-#define        DRV2624_MAGIC_NUMBER    0x32363234      /* '2624' */
+#define        DRV2624_MAGIC_NUMBER    0x32363234 & 0x1f       /* '2624' */
 
 #define        DRV2624_SET_SEQ_LOOP                            _IOWR(DRV2624_MAGIC_NUMBER, 1, struct drv2624_seq_loop *)
 #define        DRV2624_SET_MAIN                                        _IOWR(DRV2624_MAGIC_NUMBER, 2, struct drv2624_wave_setting *)