Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755471AbeAILHa (ORCPT + 1 other); Tue, 9 Jan 2018 06:07:30 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33846 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752345AbeAILH2 (ORCPT ); Tue, 9 Jan 2018 06:07:28 -0500 X-Google-Smtp-Source: ACJfBotuf5Zzsn9kEXlMyv+lpAP1Cu8410QQmavr5K2Dkrq5mZZbC7n23lxqh0nlTjSzRwf6XLMX9h0OilQPVfr7v1k= MIME-Version: 1.0 In-Reply-To: <20180107160820.05660804@archlinux> References: <1514556006-23293-1-git-send-email-mastichi@gmail.com> <20171229175449.760e734d@archlinux> <20180101095342.4d4d5325@archlinux> <20180106131434.550e8e42@archlinux> <20180107160820.05660804@archlinux> From: Dmitry Mastykin Date: Tue, 9 Jan 2018 14:07:25 +0300 Message-ID: Subject: Re: [PATCH v2] iio: adc: max9611: fix module auto-loading To: Jonathan Cameron Cc: Andy Shevchenko , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Jacopo Mondi , Dan Carpenter , Rob Herring , linux-iio@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sun, Jan 7, 2018 at 7:08 PM, Jonathan Cameron wrote: > If you wouldn't mind, could you post the snippet of the tree for this > device. I'm still not sure why it isn't probing, but it could be > that the manufacturer isn't specified, but just the part number? > &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_default>; status = "okay"; cadc0: max9611_0_70@70 { status = "okay"; compatible = "maxim,max9611"; reg = <0x70>; shunt-resistor-micro-ohms = <500000>; }; }; Thank you! Dmitry >> >> >> >> > Signed-off-by: Dmitry Mastykin >> >> >> >> > --- >> >> >> >> > drivers/iio/adc/max9611.c | 5 ++--- >> >> >> >> > 1 file changed, 2 insertions(+), 3 deletions(-) >> >> >> >> > >> >> >> >> > diff --git a/drivers/iio/adc/max9611.c b/drivers/iio/adc/max9611.c >> >> >> >> > index b1dd17c..ce0115a 100644 >> >> >> >> > --- a/drivers/iio/adc/max9611.c >> >> >> >> > +++ b/drivers/iio/adc/max9611.c >> >> >> >> > @@ -523,8 +523,7 @@ static const struct of_device_id max9611_of_table[] = { >> >> >> >> > }; >> >> >> >> > >> >> >> >> > MODULE_DEVICE_TABLE(of, max9611_of_table); >> >> >> >> > -static int max9611_probe(struct i2c_client *client, >> >> >> >> > - const struct i2c_device_id *id) >> >> >> >> > +static int max9611_probe(struct i2c_client *client) >> >> >> >> > { >> >> >> >> > const char * const shunt_res_prop = "shunt-resistor-micro-ohms"; >> >> >> >> > const struct device_node *of_node = client->dev.of_node; >> >> >> >> > @@ -576,7 +575,7 @@ static struct i2c_driver max9611_driver = { >> >> >> >> > .owner = THIS_MODULE, >> >> >> >> > .of_match_table = max9611_of_table, >> >> >> >> > }, >> >> >> >> > - .probe = max9611_probe, >> >> >> >> > + .probe_new = max9611_probe, >> >> >> >> > }; >> >> >> >> > module_i2c_driver(max9611_driver); >> >> >> >> > >> >> >> >> > -- >> >> >> >> > 2.7.4 >> >> >> >> > >> >> > >> > >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-iio" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >