Re: [PATCH v2 1/4] iio: dac: mcp4725: use regulator framework
From: Jonathan Cameron <hidden>
Date: 2016-10-15 14:00:12
Also in:
linux-iio
On 14/10/16 13:24, Tomas Novotny wrote:
Hi, On Fri, 14 Oct 2016 13:58:24 +0200 Lars-Peter Clausen [off-list ref] wrote:quoted
On 10/11/2016 03:57 PM, Tomas Novotny wrote: Hi, Looks mostly good. One small thing that should be addressed.quoted
diff --git a/include/linux/iio/dac/mcp4725.hb/include/linux/iio/dac/mcp4725.h index 91530e6..7c062e8 100644--- a/include/linux/iio/dac/mcp4725.h +++ b/include/linux/iio/dac/mcp4725.h@@ -10,7 +10,6 @@ #define IIO_DAC_MCP4725_H_ struct mcp4725_platform_data { - u16 vref_mv; };Might as well remove the whole struct and file and drop the if (!pdata) check in the driver probe function. Having to declare a empty platform_data for the driver to work is not that sensible.Yes, I was thinking of it but I left the empty structure in the driver finally (I briefly comment it also in the commit message of this patch). The reason is that the structure is used again in the next commit. So removing the file and associated checks and putting it back again would make unnecessary noise in the patches. Anyway, if you think that it is really needed I will do it.
It's fine. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan
Thanks, Tomasquoted
-- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html-- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html