On Mon, Feb 20, 2017 at 01:07:38PM +0100, Lars-Peter Clausen wrote: > On 02/19/2017 01:15 PM, Eva Rachel Retuya wrote: > > On Sun, Feb 19, 2017 at 11:01:23AM +0100, Lars-Peter Clausen wrote: > >> On 02/16/2017 11:02 AM, Eva Rachel Retuya wrote: > >> [...] > >>> @@ -54,9 +55,17 @@ static const struct i2c_device_id adxl345_i2c_id[] = { > >>> > >>> MODULE_DEVICE_TABLE(i2c, adxl345_i2c_id); > >>> > >>> +static const struct acpi_device_id adxl345_acpi_id[] = { > >>> + { "ADX0345", 0 }, > >> > >> Who allocated this ID? ADX does not seem to be a registered vendor ID > >> (http://www.uefi.org/PNP_ACPI_Registry). > >> > > > > Hello Lars, > > > > Pardon the ignorance. I was not aware of this when I set it like that. > > Is "ADS0345" OK? Will submit a new version with that ID. > > Excellent question. ACPI is not like devicetree where we can just randomly > choose IDs. The namespaces are more controlled. The vendor IDs are managed > and allocated by the UEFI forum, each vendor then allocates device IDs in > its vendor namespace for specific purposes. Unless you own a vendor ID or > the device ID has been allocated by the vendor for you you shouldn't use the ID. > > If you have a ACPI based system which features the adxl345 maybe using > PRP0001[1] might be the better approach. > > - Lars > > [1] https://www.kernel.org/doc/Documentation/acpi/enumeration.txt Since the ID has not been allocated yet, will drop this patch at the moment. Thanks for the explanation. Eva > > -- > 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