Commit e65de225 authored by Arthur Heymans's avatar Arthur Heymans Committed by Guenter Roeck

hwmon/pmbus: (ir38064) Add of_match_table

Add the missing of_match_table to allow device tree probing.
Signed-off-by: default avatarArthur Heymans <arthur.heymans@9elements.com>
Link: https://lore.kernel.org/r/20211213142814.264802-3-arthur.heymans@9elements.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent ca003af3
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/of_device.h>
#include "pmbus.h" #include "pmbus.h"
static struct pmbus_driver_info ir38064_info = { static struct pmbus_driver_info ir38064_info = {
...@@ -50,10 +51,21 @@ static const struct i2c_device_id ir38064_id[] = { ...@@ -50,10 +51,21 @@ static const struct i2c_device_id ir38064_id[] = {
MODULE_DEVICE_TABLE(i2c, ir38064_id); MODULE_DEVICE_TABLE(i2c, ir38064_id);
static const struct of_device_id ir38064_of_match[] = {
{ .compatible = "infineon,ir38060" },
{ .compatible = "infineon,ir38064" },
{ .compatible = "infineon,ir38164" },
{ .compatible = "infineon,ir38263" },
{}
};
MODULE_DEVICE_TABLE(of, ir38064_of_match);
/* This is the driver that will be inserted */ /* This is the driver that will be inserted */
static struct i2c_driver ir38064_driver = { static struct i2c_driver ir38064_driver = {
.driver = { .driver = {
.name = "ir38064", .name = "ir38064",
.of_match_table = of_match_ptr(ir38064_of_match),
}, },
.probe_new = ir38064_probe, .probe_new = ir38064_probe,
.id_table = ir38064_id, .id_table = ir38064_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment