On Mon, Aug 31, 2015 at 09:10:25PM -0500, Andreas Dannenberg wrote: [...] > @@ -686,6 +704,8 @@ static int bq24257_probe(struct i2c_client *client, > > bq->client = client; > bq->dev = dev; > + bq->chip = (enum bq2425x_chip)id->driver_data; > + strncpy(bq->chip_name, id->name, I2C_NAME_SIZE); id is NULL when ACPI enumerated... In order to check the device was enumerated by ACPI, ACPI_HANDLE(dev) should be non-NULL. Then you can use acpi_match_device() to fetch the acpi_id. laurentiu -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html