aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-02-14 10:33:25 +0100
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-02-22 14:39:28 +0100
commit1dd173fc96244d4b67f642cf90c29f21aa2b49b9 (patch)
tree16a2c98b22f940e1821172401a98d5223177ca1e /drivers/staging
parent9bda6a81ddaed8a61ca0211d6c14697177b98fbe (diff)
downloadlinux-1dd173fc96244d4b67f642cf90c29f21aa2b49b9.tar.gz
staging: greybus: pwm: Drop unused gb_connection_set_data()
The driver never calls gb_connection_get_data(). If there was another caller (say the greybus core) it cannot use the value because the type of pwmc (= struct gb_pwm_chip) is only defined in the pwm driver. So drop the call to gb_connection_set_data(). Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/bd2759c325c295f3d9f990609d97eb83a8ca88b8.1707900770.git.u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/greybus/pwm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/greybus/pwm.c b/drivers/staging/greybus/pwm.c
index 3099c2a3611cab..c7a2e874a62be3 100644
--- a/drivers/staging/greybus/pwm.c
+++ b/drivers/staging/greybus/pwm.c
@@ -260,7 +260,6 @@ static int gb_pwm_probe(struct gbphy_device *gbphy_dev,
}
pwmc->connection = connection;
- gb_connection_set_data(connection, pwmc);
gb_gbphy_set_data(gbphy_dev, chip);
ret = gb_connection_enable(connection);