[PATCH 1/1] hwmon: powr1220: remove unnecessary (void*) conversions

From: XU pengfei
Date: Tue Jan 10 2023 - 23:37:45 EST


Pointer variables of void * type do not require type cast.

Signed-off-by: XU pengfei <xupengfei@xxxxxxxxxxxx>
---
drivers/hwmon/powr1220.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/hwmon/powr1220.c b/drivers/hwmon/powr1220.c
index f77dc6db31ac..501337ee5aa3 100644
--- a/drivers/hwmon/powr1220.c
+++ b/drivers/hwmon/powr1220.c
@@ -174,7 +174,7 @@ static umode_t
powr1220_is_visible(const void *data, enum hwmon_sensor_types type, u32
attr, int channel)
{
- struct powr1220_data *chip_data = (struct powr1220_data *)data;
+ struct powr1220_data *chip_data = data;

if (channel >= chip_data->max_channels)
return 0;
--
2.18.2