[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y8esk8ekNF6S/RVu@smile.fi.intel.com>
Date: Wed, 18 Jan 2023 10:23:47 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Okan Sahin <okan.sahin@...log.com>
Cc: Lee Jones <lee@...nel.org>, Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Geert Uytterhoeven <geert+renesas@...der.be>,
ChiYuan Huang <cy_huang@...htek.com>,
Marcelo Schmitt <marcelo.schmitt1@...il.com>,
Marcus Folkesson <marcus.folkesson@...il.com>,
William Breathitt Gray <william.gray@...aro.org>,
Ramona Bolboaca <ramona.bolboaca@...log.com>,
Caleb Connolly <caleb.connolly@...aro.org>,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
linux-iio@...r.kernel.org
Subject: Re: [PATCH v3 5/5] drivers: iio: adc: Add ADI MAX77541 ADC Support
On Wed, Jan 18, 2023 at 09:38:12AM +0300, Okan Sahin wrote:
> The MAX77541 has an 8-bit Successive Approximation Register (SAR) ADC
> with four multiplexers for supporting the telemetry feature.
...
> + * Copyright (c) 2022 Analog Devices, Inc.
HNY!
...
> +#include <linux/bitfield.h>
> +#include <linux/iio/iio.h>
> +#include <linux/mod_devicetable.h>
> +#include <linux/platform_device.h>
> +#include <linux/regmap.h>
> +#include <linux/regulator/driver.h>
> +#include <linux/regulator/of_regulator.h>
What for these two?
Make sure the list of inclusions is not semi-random.
> +#include <linux/units.h>
+ Blank line.
> +#include <linux/mfd/max77541.h>
...
> + *val = DIV_ROUND_CLOSEST(ABSOLUTE_ZERO_MILLICELSIUS,
> + 1725);
This is perfectly one line, please, reduce number of LoCs by unwrapping
such cases.
...
> + if (ret)
> + return ret;
+ Blank line.
> + reg_val = FIELD_GET(MAX77541_BITS_MX_CFG1_RNG, reg_val);
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists