linux-next: build failure after merge of the hid tree

From: Stephen Rothwell
Date: Mon Nov 28 2011 - 20:01:14 EST


Hi Jiri,

After merging the hid tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

drivers/hid/hid-input.c: In function 'hidinput_hid_event':
drivers/hid/hid-input.c:865:6: error: 'struct hid_device' has no member named 'battery_val'
drivers/hid/hid-input.c:866:3: error: 'struct hid_device' has no member named 'battery_min'
drivers/hid/hid-input.c:866:3: error: 'struct hid_device' has no member named 'battery_max'

Caused by commit 4f5ca836bef3 ("HID: hid-input: add support for HID
devices reporting Battery Strength"). Those members are only defined when
CONFIG_HID_BATTERY_STRENGTH is set.

I have used the hid tree from next-20111128 for today.
--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature