CHROMIUM: platform/x86 - fix compiler warning for args of bus_find_devices
authorDaniel Kurtz <djkurtz@chromium.org>
Mon, 19 Mar 2012 16:20:29 +0000 (00:20 +0800)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:14:40 +0000 (15:14 -0700)
commit8f5eb6dcc06485026c42835c3a873e9087d56f15
tree645b54f17078ee88431a8fe38202cd2e6f43a1ef
parent96a7546f4963c490b530787ae6bec21637a875c6
CHROMIUM: platform/x86 - fix compiler warning for args of bus_find_devices

bus_find_devices() expects a non-const void * for its 3rd argument.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chromium-os:27714,chrome-os-partner:8547
TEST=builds clean (without the following warning):
  drivers/platform/x86/chromeos_laptop.c: In function 'find_i2c_adapter_num':
  drivers/platform/x86/chromeos_laptop.c:193:10: warning: passing argument 3 of 'bus_find_device' discards 'const' qualifier from pointer target type [enabled by default]
  include/linux/device.h:118:16: note: expected 'void *' but argument is of type 'char const *'

Change-Id: I24ee960408c0736f75a40c21598eed4ab1e5550a
Reviewed-on: https://gerrit.chromium.org/gerrit/18465
Commit-Ready: Benson Leung <bleung@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
drivers/platform/x86/chromeos_laptop.c