Skip to content

Commit 1dd173f

Browse files
author
Uwe Kleine-König
committed
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 <[email protected]> Link: https://lore.kernel.org/r/bd2759c325c295f3d9f990609d97eb83a8ca88b8.1707900770.git.u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent 9bda6a8 commit 1dd173f

File tree

1 file changed

+0
-1
lines changed
  • drivers/staging/greybus

1 file changed

+0
-1
lines changed

drivers/staging/greybus/pwm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ static int gb_pwm_probe(struct gbphy_device *gbphy_dev,
260260
}
261261

262262
pwmc->connection = connection;
263-
gb_connection_set_data(connection, pwmc);
264263
gb_gbphy_set_data(gbphy_dev, chip);
265264

266265
ret = gb_connection_enable(connection);

0 commit comments

Comments
 (0)