[PATCH] staging: comedi: dt282x: tidy up register bit defines

2016-03-20 Thread H Hartley Sweeten
Arnd Bergmann pointed out that gcc-6 warns about passing negative signed integer into swab16() due to the macro expansion of 'outw'. It appears that the register map constants are causing the warnings. Actually, it might just be the (1 << 15) ones... Convert all the constants as suggested by chec

Re: [PATCH] staging: comedi: dt282x: tidy up register bit defines

2016-03-19 Thread Arnd Bergmann
On Thursday 17 March 2016 10:10:40 H Hartley Sweeten wrote: > Arnd Bergmann pointed out that gcc-6 warns about passing negative signed > integer into swab16() due to the macro expansion of 'outw'. > > It appears that the register map constants are causing the warnings. > Actually, it might just be

Re: [PATCH] staging: comedi: dt282x: tidy up register bit defines

2016-03-19 Thread Ian Abbott
On 17/03/16 17:10, H Hartley Sweeten wrote: Arnd Bergmann pointed out that gcc-6 warns about passing negative signed integer into swab16() due to the macro expansion of 'outw'. It appears that the register map constants are causing the warnings. Actually, it might just be the (1 << 15) ones...