Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1730491

Re: [PATCH 2/2] hwmon: add dt binding for max1619

From Alan Tull <atull@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] hwmon: add dt binding for max1619
Date 2017-09-11 21:40 +0200
Message-ID <uoCIO-7F7-13@gated-at.bofh.it> (permalink)
References <uoCps-7wc-7@gated-at.bofh.it> <uoCps-7wc-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Sep 11, 2017 at 2:16 PM, Alan Tull <atull@kernel.org> wrote:

Add Oleksij Rempel <bug-track@fisher-privat.net>

> Add new device tree binding for max1619.
>
> Signed-off-by: Alan Tull <atull@kernel.org>
> Cc: Jean Delvare <jdelvare@suse.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> ---
>  drivers/hwmon/max1619.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/drivers/hwmon/max1619.c b/drivers/hwmon/max1619.c
> index a182789..76d9669 100644
> --- a/drivers/hwmon/max1619.c
> +++ b/drivers/hwmon/max1619.c
> @@ -303,10 +303,20 @@ static const struct i2c_device_id max1619_id[] = {
>  };
>  MODULE_DEVICE_TABLE(i2c, max1619_id);
>
> +#ifdef CONFIG_OF
> +static const struct of_device_id max1619_of_match[] = {
> +       { .compatible = "maxim,max1619", },
> +       {},
> +};
> +
> +MODULE_DEVICE_TABLE(of, max1619_of_match);
> +#endif
> +
>  static struct i2c_driver max1619_driver = {
>         .class          = I2C_CLASS_HWMON,
>         .driver = {
>                 .name   = "max1619",
> +               .of_match_table = of_match_ptr(max1619_of_match),
>         },
>         .probe          = max1619_probe,
>         .id_table       = max1619_id,
> --
> 2.7.4
>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] dt-bindings: hwmon: add compatible for max1619 Alan Tull <atull@kernel.org> - 2017-09-11 21:20 +0200
  [PATCH 2/2] hwmon: add dt binding for max1619 Alan Tull <atull@kernel.org> - 2017-09-11 21:20 +0200
    Re: [PATCH 2/2] hwmon: add dt binding for max1619 Alan Tull <atull@kernel.org> - 2017-09-11 21:40 +0200
    Re: [PATCH 2/2] hwmon: add dt binding for max1619 Guenter Roeck <linux@roeck-us.net> - 2017-09-11 22:00 +0200
      Re: [PATCH 2/2] hwmon: add dt binding for max1619 Alan Tull <atull@kernel.org> - 2017-09-11 23:20 +0200
      Re: [PATCH 2/2] hwmon: add dt binding for max1619 Rob Herring <robh@kernel.org> - 2017-09-18 23:20 +0200
        Re: [PATCH 2/2] hwmon: add dt binding for max1619 Alan Tull <atull@kernel.org> - 2017-09-19 20:20 +0200
          Re: [PATCH 2/2] hwmon: add dt binding for max1619 Rob Herring <robh@kernel.org> - 2017-09-19 21:40 +0200
  Re: [PATCH 1/2] dt-bindings: hwmon: add compatible for max1619 Alan Tull <atull@kernel.org> - 2017-09-11 21:40 +0200
    Re: [PATCH 1/2] dt-bindings: hwmon: add compatible for max1619 Alan Tull <atull@kernel.org> - 2017-09-11 23:20 +0200
      Re: [PATCH 1/2] dt-bindings: hwmon: add compatible for max1619 Rob Herring <robh@kernel.org> - 2017-09-18 23:20 +0200

csiph-web