Re: [PATCH 3/3] iio: magnetometer: ak8975: Add AK09118 support

From: Krzysztof Kozlowski
Date: Tue Aug 06 2024 - 01:22:54 EST


On 05/08/2024 22:31, Barnabás Czémán wrote:
> From: Danila Tikhonov <danila@xxxxxxxxxxx>
>
> Add additional AK09118 to the magnetometer driver which has the same
> register mapping and scaling as the AK09112 device.
>
> Signed-off-by: Danila Tikhonov <danila@xxxxxxxxxxx>
> Signed-off-by: Barnabás Czémán <barnabas.czeman@xxxxxxxxxxxxxx>

...

> };
> MODULE_DEVICE_TABLE(i2c, ak8975_id);
> @@ -1081,6 +1114,8 @@ static const struct of_device_id ak8975_of_match[] = {
> { .compatible = "ak09912", .data = &ak_def_array[AK09912] },
> { .compatible = "asahi-kasei,ak09916", .data = &ak_def_array[AK09916] },
> { .compatible = "ak09916", .data = &ak_def_array[AK09916] },
> + { .compatible = "asahi-kasei,ak09918", .data = &ak_def_array[AK09918] },
> + { .compatible = "ak09918", .data = &ak_def_array[AK09918] },

NAK. That's not a valid compatible.

Best regards,
Krzysztof