On 05/02/16 21:44, Daniel Baluta wrote: > On Fri, Feb 5, 2016 at 11:02 PM, Lucas De Marchi > <lucas.de.marchi@xxxxxxxxx> wrote: >> Hi Daniel, >> >> On Fri, Feb 5, 2016 at 11:17 AM, Daniel Baluta <daniel.baluta@xxxxxxxxx> wrote: >>> + >>> +static const struct i2c_device_id ads1015_id[] = { >>> + {"ads1015", 0}, >>> + {} >>> +}; >> >> Since this module is not 100% compatible with the hwmon version, >> wouldn't it be better to use another id? > > Hmm, as it is now it should be 100% compatible with the hwmon driver > for ads1015 device. > > I don't have a strong preference for id here. Do you see any problems using > this id? We definitely want to keep the ID if at all possible as otherwise we end up with a driver choice having to be made at compile time (or possibly via the device tree). If there is a compatibility issue, then Lucas, please highlight it. In the short term both drivers will exist and we'll rely on the Kconfig tricks above to prevent them being both built. Longer term, if this driver supports all features of the HWMON driver (via the iio-hwmon bridge) then then extra support in here will make it sensible to drop the HWMON driver (just not for at least a cycle or two I would guess). Jonathan > >> >> Other than that, I tested it on the MinnowBoard Max with a Drone Lure >> connected and it works fine. > > thanks, > Daniel. > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html