CHROMIUM: i2c: samsung: do not put a default class for the adapter
authorVincent Palatin <vpalatin@chromium.org>
Wed, 30 Jan 2013 19:06:04 +0000 (11:06 -0800)
committerChromeBot <chrome-bot@google.com>
Tue, 5 Feb 2013 07:03:07 +0000 (23:03 -0800)
commitad3c2210400f7098e99fd568036c67440a6d4709
tree1858c509d79180d11ca28206e89bf8fae59e43ed
parent808f8d525c0eeaba7d71f2c9f993c02b1c76e210
CHROMIUM: i2c: samsung: do not put a default class for the adapter

Avoid adding I2C_CLASS_HWMON and I2C_CLASS_SPD class flags to all
Samsung I2C adapters when the I2C mappings are defined in a device tree.
So the drivers doing an auto-detection by probing busses won't mess-up
sensitive I2C devices or trigger long timeouts on non-functional busses.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:16725
TEST=emerge-daisy_spring chromeos-kernel
On spring, run with LM90 driver compiled and do not see timeout at
startup on non-functional busses

Change-Id: Iacdba3846c59f605224ff61f5b7c605828486db3
Reviewed-on: https://gerrit.chromium.org/gerrit/42480
Reviewed-by: Olof Johansson <olofj@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
drivers/i2c/busses/i2c-s3c2410.c