From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: jic23@kernel.org
Cc: linux-iio@vger.kernel.org,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Subject: [PATCH 2/3] iio: imu: inv_mpu6050: Added adapter class
Date: Mon, 15 Dec 2014 13:19:22 -0800 [thread overview]
Message-ID: <1418678363-22437-3-git-send-email-srinivas.pandruvada@linux.intel.com> (raw)
In-Reply-To: <1418678363-22437-1-git-send-email-srinivas.pandruvada@linux.intel.com>
To use i2c auto detect to work we need to have a non zero class.
The closest class is I2C_CLASS_HWMON, as it defined to be used
with all hw monitoring drivers.
Also this class is already used by some iio driver, hid drivers, led
and misc drivers. So this is not new that this is used outside
hwmon drivers.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
index f73e60b..4af2d24 100644
--- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
+++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
@@ -813,7 +813,7 @@ static int inv_mpu_probe(struct i2c_client *client,
st->mux_adapter = i2c_add_mux_adapter(client->adapter,
&client->dev,
indio_dev,
- 0, 0, 0,
+ 0, 0, I2C_CLASS_HWMON,
inv_mpu6050_select_bypass,
inv_mpu6050_deselect_bypass);
if (!st->mux_adapter) {
--
1.9.3
next prev parent reply other threads:[~2014-12-15 21:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 21:19 [PATCH 0/3] Enable AK8963 conneted via INV6500 Srinivas Pandruvada
2014-12-15 21:19 ` [PATCH 1/3] iio: imu: inv_mpu6050: ACPI enumeration Srinivas Pandruvada
2014-12-26 12:39 ` Jonathan Cameron
2014-12-15 21:19 ` Srinivas Pandruvada [this message]
2014-12-26 12:37 ` [PATCH 2/3] iio: imu: inv_mpu6050: Added adapter class Jonathan Cameron
2014-12-31 10:25 ` Wolfram Sang
2015-01-01 12:27 ` Jonathan Cameron
2015-01-04 19:20 ` Jean Delvare
2014-12-15 21:19 ` [PATCH 3/3] iio: ak8975: Added autodetect feature for ACPI Srinivas Pandruvada
2014-12-18 16:28 ` Lars-Peter Clausen
2014-12-18 16:52 ` Srinivas Pandruvada
2014-12-18 17:05 ` Lars-Peter Clausen
2014-12-18 17:30 ` Srinivas Pandruvada
2014-12-18 17:54 ` Lars-Peter Clausen
2014-12-18 18:00 ` Srinivas Pandruvada
2014-12-26 11:53 ` Jonathan Cameron
2015-01-08 16:40 ` Wolfram Sang
2015-01-08 16:54 ` Srinivas Pandruvada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1418678363-22437-3-git-send-email-srinivas.pandruvada@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).