linux/arch
Arnd Bergmann 4d2508a559 ARM: pxa/raumfeld: use PROPERTY_ENTRY_INTEGER to define props
gcc-6.0 notices that the use of the property_entry in this file that
was recently introduced cannot work right, as we initialize the wrong
field:

raumfeld.c:387:3: error: the address of 'raumfeld_rotary_encoder_steps' will always evaluate as 'true' [-Werror=address]
   DEV_PROP_U32, 1, &raumfeld_rotary_encoder_steps, },
   ^~~~~~~~~~~~
raumfeld.c:389:3: error: the address of 'raumfeld_rotary_encoder_axis' will always evaluate as 'true' [-Werror=address]
   DEV_PROP_U32, 1, &raumfeld_rotary_encoder_axis, },
   ^~~~~~~~~~~~
raumfeld.c:391:3: error: the address of 'raumfeld_rotary_encoder_relative_axis' will always evaluate as 'true' [-Werror=address]
   DEV_PROP_U32, 1, &raumfeld_rotary_encoder_relative_axis, },
   ^~~~~~~~~~~~

The problem appears to stem from relying on an old definition of
'struct property', but it has changed several times since the code
could have last been correct.

This changes the code to use the PROPERTY_ENTRY_INTEGER() macro instead,
which works fine for the current definition and is a safer way of doing
the initialization.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: a9e340dce3 ("Input: rotary_encoder - move away from platform data structure")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2016-03-15 16:56:46 -07:00
..
alpha
arc
arm ARM: pxa/raumfeld: use PROPERTY_ENTRY_INTEGER to define props 2016-03-15 16:56:46 -07:00
arm64 arm64 fixes: 2016-03-10 10:39:04 -08:00
avr32
blackfin Linux 4.5 2016-03-15 16:54:45 -07:00
c6x
cris
frv
h8300
hexagon
ia64
m32r
m68k
metag
microblaze
mips MIPS: smp.c: Fix uninitialised temp_foreign_map 2016-03-13 10:59:19 +01:00
mn10300
nios2
openrisc
parisc
powerpc Merge branch 'kvm-ppc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into HEAD 2016-03-08 12:46:50 +01:00
s390 A few simple fixes for ARM, x86, PPC and generic code. The x86 MMU fix 2016-03-10 10:42:15 -08:00
score
sh
sparc
tile
um
unicore32
x86 Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-03-12 20:09:25 -08:00
xtensa
.gitignore
Kconfig