Re: [PATCH 1/4] hmc6352: Add driver for the HMC6352 compass

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jonathan Cameron
Date: Wednesday, April 14, 2010 - 6:48 am

Hi Alan, Kalhan, 

Couple of comments below.
On 04/14/10 13:51, Alan Cox wrote:
This is in no way a hwmon chip.  Surely misc is a better location for now
(pending the usual discussion about all singing all dancing sensors frameworks).


Why these extra hwmon includes?  At least at first glance I can't see
any uses of them.  The only call to hwmon is to stick this in the
hwmon class.
or any mutex usage?

I guess this makes the driver look like many others, but why bother with
the wrapping structure?  This is only used to keep track of the hwmon
device to be able to remove it later.
Personally I'd have gone with a couple of chars then passed their address into
the i2c_msg initializations.  Guess it doesn't matter either way though!
These address changes looking a little unusual to me.  They may well be needed, but
if so can we have an explanatory comment?


Why i2c_compass for the name? 

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] Various intel small device drivers, Alan Cox, (Wed Apr 14, 5:51 am)
[PATCH 2/4] isl29020: ambient light sensor, Alan Cox, (Wed Apr 14, 5:51 am)
[PATCH 3/4] liss331d1: accelerometer driver, Alan Cox, (Wed Apr 14, 5:52 am)
[PATCH 4/4] emc1403: thermal sensor support, Alan Cox, (Wed Apr 14, 5:52 am)
Re: [PATCH 0/4] Various intel small device drivers, Jean Delvare, (Wed Apr 14, 6:30 am)
Re: [PATCH 1/4] hmc6352: Add driver for the HMC6352 compass, Jonathan Cameron, (Wed Apr 14, 6:48 am)
Re: [PATCH 0/4] Various intel small device drivers, Jonathan Cameron, (Wed Apr 14, 6:55 am)
Re: [PATCH 1/4] hmc6352: Add driver for the HMC6352 compass, Jonathan Cameron, (Wed Apr 14, 7:51 am)
Re: [PATCH 1/4] hmc6352: Add driver for the HMC6352 compass, Jonathan Cameron, (Wed Apr 14, 9:39 am)
isl29020: ALS driver as misc device, Alan Cox, (Wed Apr 14, 9:56 am)
Re: isl29020: ALS driver as misc device, Greg KH, (Wed Apr 14, 10:01 am)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Éric Piel, (Wed Apr 14, 3:12 pm)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Daniel Mack, (Wed Apr 14, 3:34 pm)
Re: [PATCH 2/4] isl29020: ambient light sensor, Alan Cox, (Wed Apr 14, 3:35 pm)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Alan Cox, (Wed Apr 14, 3:37 pm)
Re: [PATCH 2/4] isl29020: ambient light sensor, Daniel Mack, (Wed Apr 14, 3:45 pm)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Neil Brown, (Wed Apr 14, 4:05 pm)
Re: [PATCH 2/4] isl29020: ambient light sensor, Daniel Mack, (Wed Apr 14, 11:20 pm)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Éric Piel, (Thu Apr 15, 2:47 am)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Alan Cox, (Thu Apr 15, 3:02 am)
Re: isl29020: ALS driver as misc device, Jonathan Cameron, (Thu Apr 15, 3:09 am)
Re: [PATCH 2/4] isl29020: ambient light sensor, Jonathan Cameron, (Thu Apr 15, 3:15 am)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Jonathan Cameron, (Thu Apr 15, 3:28 am)
Re: isl29020: ALS driver as misc device, Alan Cox, (Thu Apr 15, 4:17 am)
Re: [PATCH 3/4] liss331d1: accelerometer driver, Pavel Machek, (Thu Apr 15, 12:12 pm)
Re: isl29020: ALS driver as misc device, Jonathan Cameron, (Mon Apr 26, 3:59 am)