Skip to content

Commit

Permalink
extcon: max77843: add device-tree compatible string
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Szyprowski authored and Chanwoo Choi committed Oct 6, 2023
1 parent 36d301f commit da886ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/extcon/extcon-max77843.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,9 +946,16 @@ static const struct platform_device_id max77843_muic_id[] = {
};
MODULE_DEVICE_TABLE(platform, max77843_muic_id);

static const struct of_device_id of_max77843_muic_dt_match[] = {
{ .compatible = "maxim,max77843-muic", },
{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(of, of_max77843_muic_dt_match);

static struct platform_driver max77843_muic_driver = {
.driver = {
.name = "max77843-muic",
.of_match_table = of_max77843_muic_dt_match,
},
.probe = max77843_muic_probe,
.remove = max77843_muic_remove,
Expand Down

0 comments on commit da886ba

Please sign in to comment.