From: Jean Delvare Date: Sun, 31 May 2015 13:09:20 +0000 Subject: Re: [lm-sensors] [PATCH v2 2/2] hwmon: (atxp1) Drop auto-detection Message-Id: <20150531150920.2548d4a6@endymion.delvare> List-Id: References: <1432931265-21499-2-git-send-email-linux@roeck-us.net> In-Reply-To: <1432931265-21499-2-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@vger.kernel.org On Sat, 30 May 2015 11:17:28 -0700, Guenter Roeck wrote: > On 05/29/2015 01:27 PM, Guenter Roeck wrote: > > Auto-detection for this chip is highly unreliable, and one of its > > I2C addresses can also be used by EEPROMs, increasing the risk for > > false positives even more. Drop auto-detection entirely to remove > > the risk. > > > > Signed-off-by: Guenter Roeck > > --- > > v2: Add text describing the supported I2C addresses, and that the driver > > must be instantiated explicitly. > > Validate supported vrm values in probe function. > > > [ ... ] > > > - > > static int atxp1_probe(struct i2c_client *client, > > const struct i2c_device_id *id) > > { > > @@ -309,6 +269,11 @@ static int atxp1_probe(struct i2c_client *client, > > > > /* Get VRM */ > > data->vrm = vid_which_vrm(); > > + if (data->vrm != 90 && data->vrm != 91) { > > + dev_err(&adapter->dev, "atxp1: Not supporting VRM %d.%d\n", You have a stray space before "dev_err". > > + data->vrm / 10, data->vrm % 10); > > s/&adapter->// > > Compile testing is always a good idea. After fixing both issues: Reviewed-by: Jean Delvare -- Jean Delvare SUSE L3 Support _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors