]> git.baikalelectronics.ru Git - kernel.git/commit
HID: picolcd: fix build error if !CONFIG_DEBUG_FS
authorAxel Lin <axel.lin@gmail.com>
Tue, 11 Sep 2012 12:29:53 +0000 (20:29 +0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 11 Sep 2012 14:06:22 +0000 (16:06 +0200)
commit53d5e8f35ca7eab78c3863c429a4c70c2a0b8c43
tree96c544f3310f263999cf04301b6bf31451cac0be
parentf6a7914e9a0be524a203b40ca26763c293b82672
HID: picolcd: fix build error if !CONFIG_DEBUG_FS

Current code missed the definition for picolcd_debug_out_report, but add
definition for picolcd_debug_raw_event twice.

This patch fixes below build error:
  CC [M]  drivers/hid/hid-picolcd_core.o
In file included from drivers/hid/hid-picolcd_core.c:34:0:
drivers/hid/hid-picolcd.h:176:20: error: redefinition of 'picolcd_debug_raw_event'
drivers/hid/hid-picolcd.h:162:20: note: previous definition of 'picolcd_debug_raw_event' was here
make[2]: *** [drivers/hid/hid-picolcd_core.o] Error 1
make[1]: *** [drivers/hid] Error 2
make: *** [drivers] Error 2

if CONFIG_DEBUG_FS is unset.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-picolcd.h