Re: [PATCH] hwmon: driver for Sensirion SHT21 humidity and temperature sensor

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jonathan Cameron
Date: Monday, January 3, 2011 - 4:06 am

On 01/03/11 07:14, Urs Fleisch wrote:
When posting an updated driver, use the form
[PATCH V2] hwmon: driver...

That way it will be obvious to people that it isn't just a repost of the
previous code.
Those two aren't in the documentation for hwmon.
Guenter/Jean, how should this be done?  
Is there actualy a use case that means these can't both be set
by platform data?  Also, if these are acceptable, should they have
some means of indicating which combination of values are available?

Up to maintainers.  Other than trying to work out some way of indicating valid
options for the two resolution attributes I'd be happy with these.
Rely on platform data to get this right rather than an adhoc test that
might well pass on some random devices.

Sorry to say I missed some error handling issues the first time around.
Please always provide userspace with the most detailed and correct error
possible. Normally this is the one comming up from the bus subsystem.

Nearly there as far as I am concerned!

Thanks,

Jonathan

If it is less than 0, we have an error that ought to be correctly
handled. The correct option is to pass this all the way up to userspace.

Please return the actual error not this generic one (e.g. return userreg)
Again, return the actual error rather than masking the extra information it
may have.
ditto
ditto
ditto

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

Messages in current thread:
Re: [PATCH] hwmon: driver for Sensirion SHT21 humidity and ..., Jonathan Cameron, (Mon Jan 3, 4:06 am)