From patchwork Tue Jan 11 15:23:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 471821 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0BFOEWg026235 for ; Tue, 11 Jan 2011 15:24:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756143Ab1AKPYH (ORCPT ); Tue, 11 Jan 2011 10:24:07 -0500 Received: from zone0.gcu-squad.org ([212.85.147.21]:42913 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756129Ab1AKPYG (ORCPT ); Tue, 11 Jan 2011 10:24:06 -0500 Received: from jdelvare.pck.nerim.net ([62.212.121.182] helo=endymion.delvare) by services.gcu-squad.org (GCU Mailer Daemon) with esmtpsa id 1Pch9v-0004gO-2J (TLSv1:AES128-SHA:128) (envelope-from ) ; Tue, 11 Jan 2011 17:33:23 +0100 Date: Tue, 11 Jan 2011 16:23:52 +0100 From: Jean Delvare To: Benjamin Herrenschmidt Cc: linux-fbdev@vger.kernel.org, Alexander Goomenyuk Subject: [PATCH] radeonfb: Let hwmon driver probe the "monid" I2C bus Message-ID: <20110111162352.5a634e9e@endymion.delvare> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 11 Jan 2011 15:24:14 +0000 (UTC) --- linux-2.6.38-rc0.orig/drivers/video/aty/radeon_i2c.c 2011-01-05 21:24:24.000000000 +0100 +++ linux-2.6.38-rc0/drivers/video/aty/radeon_i2c.c 2011-01-11 13:51:34.000000000 +0100 @@ -100,6 +100,7 @@ void radeon_create_i2c_busses(struct rad { rinfo->i2c[0].rinfo = rinfo; rinfo->i2c[0].ddc_reg = GPIO_MONID; + rinfo->i2c[0].adapter.class = I2C_CLASS_HWMON; radeon_setup_i2c_bus(&rinfo->i2c[0], "monid"); rinfo->i2c[1].rinfo = rinfo;