Re: [linux-sunxi] [PATCH v3 2/5] iio: adc: sun4i-gpadc-iio: rename A23/A33-specified registers to contain A23
On Mon, Jul 24, 2017 at 2:06 PM,wrote: > 在 2017-07-24 14:02,Chen-Yu Tsai 写道: >> >> On Sun, Jul 23, 2017 at 10:13 PM, Icenowy Zheng wrote: >>> >>> As the H3 SoC, which is also in sun8i line, has totally different >>> register map for the thermal sensor (a cut down version of GPADC), we >>> should rename A23/A33-specified registers to contain A23, in order to >>> prevent obfuscation with H3 registers. Currently these registers are >>> only prefixed "SUN8I", not "SUN8I_A23". >>> >>> Add "_A23" after "SUN8I" on the register names. >> >> >> Nit: the compatible string as well as the initial driver targets the A33. >> Naming the registers as such would be more consistent. > > > But the registers are the same between A23 and A33. > > In fact the only difference between A23 and A33 is the formula's factors. The goal here is to keep things consistent. Nothing in this driver as it currently is mentions A23. Unless you plan on adding additional commits to support the A23, and a note explaining the similarity of the A23 and A33 ADCs, this is only going to confuse people. ChenYu > >> >> Otherwise, >> >> Reviewed-by: Chen-Yu Tsai > > > -- > You received this message because you are subscribed to the Google Groups > "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to linux-sunxi+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH v3 2/5] iio: adc: sun4i-gpadc-iio: rename A23/A33-specified registers to contain A23
On Mon, Jul 24, 2017 at 2:06 PM, wrote: > 在 2017-07-24 14:02,Chen-Yu Tsai 写道: >> >> On Sun, Jul 23, 2017 at 10:13 PM, Icenowy Zheng wrote: >>> >>> As the H3 SoC, which is also in sun8i line, has totally different >>> register map for the thermal sensor (a cut down version of GPADC), we >>> should rename A23/A33-specified registers to contain A23, in order to >>> prevent obfuscation with H3 registers. Currently these registers are >>> only prefixed "SUN8I", not "SUN8I_A23". >>> >>> Add "_A23" after "SUN8I" on the register names. >> >> >> Nit: the compatible string as well as the initial driver targets the A33. >> Naming the registers as such would be more consistent. > > > But the registers are the same between A23 and A33. > > In fact the only difference between A23 and A33 is the formula's factors. The goal here is to keep things consistent. Nothing in this driver as it currently is mentions A23. Unless you plan on adding additional commits to support the A23, and a note explaining the similarity of the A23 and A33 ADCs, this is only going to confuse people. ChenYu > >> >> Otherwise, >> >> Reviewed-by: Chen-Yu Tsai > > > -- > You received this message because you are subscribed to the Google Groups > "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to linux-sunxi+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH v3 2/5] iio: adc: sun4i-gpadc-iio: rename A23/A33-specified registers to contain A23
在 2017-07-24 14:02,Chen-Yu Tsai 写道: On Sun, Jul 23, 2017 at 10:13 PM, Icenowy Zhengwrote: As the H3 SoC, which is also in sun8i line, has totally different register map for the thermal sensor (a cut down version of GPADC), we should rename A23/A33-specified registers to contain A23, in order to prevent obfuscation with H3 registers. Currently these registers are only prefixed "SUN8I", not "SUN8I_A23". Add "_A23" after "SUN8I" on the register names. Nit: the compatible string as well as the initial driver targets the A33. Naming the registers as such would be more consistent. But the registers are the same between A23 and A33. In fact the only difference between A23 and A33 is the formula's factors. Otherwise, Reviewed-by: Chen-Yu Tsai
Re: [linux-sunxi] [PATCH v3 2/5] iio: adc: sun4i-gpadc-iio: rename A23/A33-specified registers to contain A23
在 2017-07-24 14:02,Chen-Yu Tsai 写道: On Sun, Jul 23, 2017 at 10:13 PM, Icenowy Zheng wrote: As the H3 SoC, which is also in sun8i line, has totally different register map for the thermal sensor (a cut down version of GPADC), we should rename A23/A33-specified registers to contain A23, in order to prevent obfuscation with H3 registers. Currently these registers are only prefixed "SUN8I", not "SUN8I_A23". Add "_A23" after "SUN8I" on the register names. Nit: the compatible string as well as the initial driver targets the A33. Naming the registers as such would be more consistent. But the registers are the same between A23 and A33. In fact the only difference between A23 and A33 is the formula's factors. Otherwise, Reviewed-by: Chen-Yu Tsai
Re: [linux-sunxi] [PATCH v3 2/5] iio: adc: sun4i-gpadc-iio: rename A23/A33-specified registers to contain A23
On Sun, Jul 23, 2017 at 10:13 PM, Icenowy Zhengwrote: > As the H3 SoC, which is also in sun8i line, has totally different > register map for the thermal sensor (a cut down version of GPADC), we > should rename A23/A33-specified registers to contain A23, in order to > prevent obfuscation with H3 registers. Currently these registers are > only prefixed "SUN8I", not "SUN8I_A23". > > Add "_A23" after "SUN8I" on the register names. Nit: the compatible string as well as the initial driver targets the A33. Naming the registers as such would be more consistent. Otherwise, Reviewed-by: Chen-Yu Tsai
Re: [linux-sunxi] [PATCH v3 2/5] iio: adc: sun4i-gpadc-iio: rename A23/A33-specified registers to contain A23
On Sun, Jul 23, 2017 at 10:13 PM, Icenowy Zheng wrote: > As the H3 SoC, which is also in sun8i line, has totally different > register map for the thermal sensor (a cut down version of GPADC), we > should rename A23/A33-specified registers to contain A23, in order to > prevent obfuscation with H3 registers. Currently these registers are > only prefixed "SUN8I", not "SUN8I_A23". > > Add "_A23" after "SUN8I" on the register names. Nit: the compatible string as well as the initial driver targets the A33. Naming the registers as such would be more consistent. Otherwise, Reviewed-by: Chen-Yu Tsai