hwmon: tmp513: Simplify tmp51x_read_properties()
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 7 Sep 2023 07:14:04 +0000 (08:14 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 27 Oct 2023 14:27:23 +0000 (07:27 -0700)
commit27887b06597bbfef8924985d1ed21db3ab01c417
tree949584f71973d90260e9b5f560063fd0f9c00315
parentfb99e07a9e396402f643a138c2aef4699671b44a
hwmon: tmp513: Simplify tmp51x_read_properties()

Simplify tmp51x_read_properties() by replacing 'nfactor' ->'data->nfactor'
in device_property_read_u32_array() and drop the local variable as it is
unused.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230907071404.24334-3-biju.das.jz@bp.renesas.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp513.c