Re: [PATCH] drivers/hwmon/emc1403.c: add support for emc1412
From: Guenter Roeck
Date: Mon May 12 2014 - 11:59:45 EST
On Mon, May 12, 2014 at 08:10:51AM +0200, Jean Delvare wrote:
> Hi Guenter, Josef,
>
> On Sun, 11 May 2014 15:40:21 -0700, Guenter Roeck wrote:
> > On 05/11/2014 06:00 AM, Josef Gajdusek wrote:
> > > @@ -366,14 +433,19 @@ static int emc1403_probe(struct i2c_client *client,
> > > }
> > >
> > > static const unsigned short emc1403_address_list[] = {
> > > - 0x18, 0x29, 0x4c, 0x4d, I2C_CLIENT_END
> > > + /* emc1403/emc1404/emc1423/emc1424 */
> > > + 0x4c, 0x4d, 0x18, 0x29,
> > > + /* emc1412 */
> > > + 0x5c, 0x4c, 0x6c, 0x1c, 0x3c, I2C_CLIENT_END
> >
> > No duplication of addresses, and addresses are by convention in order.
> > Jean, any addresses which should not be scanned ?
>
> 0x3c and 0x6c should indeed not be scanned, sensors-detect does not
> scan them as they aren't typically used by hwmon devices. 0x5c is
> questionable (currently scanned, but used only by a limited number of
> chips, we may drop it at some point.) 0x1c and 0x4c are OK to scan.
>
Hi Jean,
I only see the adt7462 driver scanning for 0x5c. Guess I'll accept the
address for now; I don't see a good reason not to.
Couple of other questions:
- would it make sense to relax store_hyst to not return ERANGE but use clamp_val
instead ?
- Currently hyst can be stored for all crit attributes even though there is only
one hyst register. Should we change this to only support writing it for
temp1_crit_hyst ?
- I might convert the driver to use regmap if I find the time. Do you have any
concerns with that ?
Thanks,
Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/