]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: da9121: Use subvariant ids in the I2C table
authorPengpeng Hou <pengpeng@iscas.ac.cn>
Wed, 24 Jun 2026 06:00:24 +0000 (14:00 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 24 Jun 2026 11:56:37 +0000 (12:56 +0100)
commit7ddbf1cde4a03e36e17d06fbc711870eb0b256d7
tree6ded564224d22a655cb0fa061be4cd912bba533b
parentfbef4191b4961c125585c715407e693f7d0024a9
regulator: da9121: Use subvariant ids in the I2C table

da9121_i2c_probe() stores i2c_get_match_data() in chip->subvariant_id
and da9121_assign_chip_model() switches on DA9121_SUBTYPE_* values.  The
OF table provides those subvariant values, but the I2C id table
currently provides DA9121_TYPE_* values.

Make the I2C id table use the same subvariant namespace as the OF table
so non-DT I2C matches feed the expected data type into the model
assignment code.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260624060024.61300-1-pengpeng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9121-regulator.c