[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <858dbcce-027a-5f48-ce66-06c79b6eeadd@gmail.com>
Date: Thu, 30 Aug 2018 22:46:58 +0200
From: Philipp Rossak <embed3d@...il.com>
To: lee.jones@...aro.org, robh+dt@...nel.org, mark.rutland@....com,
maxime.ripard@...tlin.com, wens@...e.org, linux@...linux.org.uk,
jic23@...nel.org, knaack.h@....de, lars@...afoo.de,
pmeerw@...erw.net, eugen.hristev@...rochip.com,
rdunlap@...radead.org, vilhelm.gray@...il.com,
clabbe.montjoie@...il.com, quentin.schulz@...tlin.com,
geert+renesas@...der.be, lukas@...ner.de, icenowy@...c.io,
arnd@...db.de, broonie@...nel.org, arnaud.pouliquen@...com,
linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-sunxi@...glegroups.com
Subject: Re: [linux-sunxi] [PATCH v3 21/30] iio: adc: sun4i-gpadc-iio: add
support for H3 thermal sensor
On 30.08.2018 22:00, Philipp Rossak wrote:
> On 30.08.2018 18:27, Ondřej Jirman wrote:
>>> +static int sun8i_h3_calibrate(struct sun4i_gpadc_iio *info)
>>> +{
>>> +// regmap_write(info->regmap, SUNXI_THS_CDATA_0_1,
>>> +// info->calibration_data[0]);
>>> +// regmap_write(info->regmap, SUNXI_THS_CDATA_2_3,
>>> +// info->calibration_data[1]);
>> This should probably be implemented, or left out completely.
>>
>> regards,
>> o.
>>
> Thanks you are right!
> This should be implemented! I will fix this in the next version!
>
> Thanks,
> Philipp
I just realized this function need to check if calibration datas are
available. Writing zeros to the calibration data regs "breaks" the
thermal sensor.
Philipp
Powered by blists - more mailing lists