Re: [PATCH v3 2/2] iio: ad5272: Add support for Analog Devices digital potentiometers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21/01/2018 01:12, Jonathan Cameron wrote:
On Wed, 17 Jan 2018 11:38:28 +0800
Phil Reid <preid@xxxxxxxxxxxxxxxxx> wrote:

Add implementation for Analog Devices AD5272 and AD5274 digital
potentiometer devices.

Signed-off-by: Phil Reid <preid@xxxxxxxxxxxxxxxxx>
A couple more minor comments.

...

  menu "Digital potentiometers"
+config AD5272
+	tristate "Analog Devices AD5272 Digital Potentiometer driver"
+	depends on I2C
+	help
+	  Say yes here to build support for the Analog Devices AD5272
+	  digital potentiometer chip.

You need to list he compatible parts here so that people looking for
the driver can find it.  Usually the short text states 'and similar'
and the help text contains a list of parts.  AD5274 is missing here.

ok

...

+	if (reset_gpio) {
+		udelay(1);
+		gpiod_set_value(reset_gpio, 1);
+	} else {
+		ad5272_write(data, AD5272_RESET, 0);
+	}
+	usleep_range(1000, 2000);
kernel coding conventions (and readability) put a blank line
before return statements.
ok

--
Regards
Phil Reid

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux