Skip to content

Commit da886ba

Browse files
mszyprowchanwoochoi
authored andcommitted
extcon: max77843: add device-tree compatible string
Add the needed device-tree compatible string to the MAX77843 extcon driver, so it can be automatically loaded when compiled as a kernel module and given device-tree contains separate 'muic' node under the main MAX77843 PMIC node. Link: https://lore.kernel.org/all/20231006100434.2908243-2-m.szyprowski@samsung.com/ Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent 36d301f commit da886ba

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/extcon/extcon-max77843.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,9 +946,16 @@ static const struct platform_device_id max77843_muic_id[] = {
946946
};
947947
MODULE_DEVICE_TABLE(platform, max77843_muic_id);
948948

949+
static const struct of_device_id of_max77843_muic_dt_match[] = {
950+
{ .compatible = "maxim,max77843-muic", },
951+
{ /* sentinel */ },
952+
};
953+
MODULE_DEVICE_TABLE(of, of_max77843_muic_dt_match);
954+
949955
static struct platform_driver max77843_muic_driver = {
950956
.driver = {
951957
.name = "max77843-muic",
958+
.of_match_table = of_max77843_muic_dt_match,
952959
},
953960
.probe = max77843_muic_probe,
954961
.remove = max77843_muic_remove,

0 commit comments

Comments
 (0)