[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221101174255.54452-2-andriy.shevchenko@linux.intel.com>
Date: Tue, 1 Nov 2022 19:42:54 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>, linux-pwm@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Thierry Reding <thierry.reding@...il.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: [PATCH v1 2/3] pwm: core: Drop unneeded casting in pwm_seq_show()
The casting form void * to char * is not needed and done implicitly.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
drivers/pwm/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index 855abd0a776f..36128f3301ac 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -1158,7 +1158,7 @@ static int pwm_seq_show(struct seq_file *s, void *v)
{
struct pwm_chip *chip = list_entry(v, struct pwm_chip, list);
- seq_printf(s, "%s%s/%s, %d PWM device%s\n", (char *)s->private,
+ seq_printf(s, "%s%s/%s, %d PWM device%s\n", s->private,
chip->dev->bus ? chip->dev->bus->name : "no-bus",
dev_name(chip->dev), chip->npwm,
(chip->npwm != 1) ? "s" : "");
--
2.35.1
Powered by blists - more mailing lists