public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] assign a default class to MPC adapter
@ 2009-04-16  9:06 Michael Lawnick
       [not found] ` <49E6F4F9.3060705-Mmb7MZpHnFY@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Lawnick @ 2009-04-16  9:06 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA; +Cc: Delvare, Jean 

For MPC adapter there is no class assigned as it is done in other
adapters. This way no new-style client will ever be instantiated. There
should be at least a default class assignment.

Signed-off-by: Michael Lawnick <ml.lawnick-Mmb7MZpHnFY@public.gmane.org>
Cc: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
---
 drivers/i2c/busses/i2c-mpc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c
--- a/drivers/i2c/busses/i2c-mpc.c
+++ b/drivers/i2c/busses/i2c-mpc.c
@@ -310,6 +310,7 @@ static const struct i2c_algorithm mpc_algo = {
 static struct i2c_adapter mpc_ops = {
 	.owner = THIS_MODULE,
 	.name = "MPC adapter",
+	.class = I2C_CLASS_HWMON,
 	.algo = &mpc_algo,
 	.timeout = 1,
 };

-- 
Michael Lawnick

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-04-21  7:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16  9:06 [PATCH] assign a default class to MPC adapter Michael Lawnick
     [not found] ` <49E6F4F9.3060705-Mmb7MZpHnFY@public.gmane.org>
2009-04-16  9:20   ` Wolfram Sang
     [not found]     ` <20090416092012.GB3052-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-04-16 10:55       ` Michael Lawnick
2009-04-16 11:01       ` Michael Lawnick
     [not found]         ` <49E7101E.6070806-Mmb7MZpHnFY@public.gmane.org>
2009-04-16 11:47           ` Wolfram Sang
     [not found]             ` <20090416114701.GD3052-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2009-04-16 13:36               ` Michael Lawnick
     [not found]                 ` <49E7344C.2060704-Mmb7MZpHnFY@public.gmane.org>
2009-04-16 13:55                   ` Jean Delvare
     [not found]                     ` <49E82270.4030509@gmx.de>
     [not found]                       ` <49E82270.4030509-Mmb7MZpHnFY@public.gmane.org>
2009-04-17  7:33                         ` Jean Delvare
     [not found]                           ` <20090417093356.79f38e40-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-04-17  7:46                             ` Wolfram Sang
2009-04-16 14:05                   ` Wolfram Sang
2009-04-21  6:47               ` Michael Lawnick
     [not found]                 ` <49ED6C0D.2060607-Mmb7MZpHnFY@public.gmane.org>
2009-04-21  7:13                   ` Wolfgang Grandegger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox