staging: comedi: Fix cast to restricted __be32
authorEbru Akagunduz <ebru.akagunduz@gmail.com>
Sat, 4 Oct 2014 22:47:37 +0000 (01:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:13 +0000 (10:29 +0800)
This patch fixes "cast to restricted __be32"
sparse warning in ni_stc.h

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_stc.h

index 29efce30eb7f0a25f0a70d11f21a94774539d355..131e9049f21bf143f0ddd5702e8b419346f958fc 100644 (file)
@@ -1464,7 +1464,7 @@ struct ni_private {
 
        unsigned short ai_fifo_buffer[0x2000];
        uint8_t eeprom_buffer[M_SERIES_EEPROM_SIZE];
-       uint32_t serial_number;
+       __be32 serial_number;
 
        struct mite_struct *mite;
        struct mite_channel *ai_mite_chan;