pinctrl: sx150x: add missing MODULE_DEVICE_TABLE()

The driver has a match table for the i2c bus wired into its driver
structure, but the table is not exported with MODULE_DEVICE_TABLE().

Add the missing MODULE_DEVICE_TABLE() entry so module alias information
is generated for automatic module loading.

This is a source-level fix.  It does not claim dynamic hardware
reproduction; the evidence is the driver-owned match table, its use by
the driver registration structure, and the missing module alias
publication.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
Pengpeng Hou
2026-07-04 23:22:30 +08:00
committed by Linus Walleij
parent 94cb9e8f27
commit 5fe4b12c08

View File

@@ -850,6 +850,7 @@ static const struct i2c_device_id sx150x_id[] = {
{ .name = "sx1509q", .driver_data = (kernel_ulong_t)&sx1509q_device_data },
{ }
};
MODULE_DEVICE_TABLE(i2c, sx150x_id);
static const struct of_device_id sx150x_of_match[] = {
{ .compatible = "semtech,sx1501q", .data = &sx1501q_device_data },