Skip to content

Commit cc2d224

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: Drop per-chip dbg_show callback
This callback was introduced in commit 62099ab ("pwm: Add debugfs interface") in 2012 and up to now there is not a single user. So drop this unused code. Signed-off-by: Uwe Kleine-König <[email protected]> [[email protected]: remove kerneldoc for ->dbg_show()] Signed-off-by: Thierry Reding <[email protected]>
1 parent 309b32f commit cc2d224

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

drivers/pwm/core.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,10 +1036,7 @@ static int pwm_seq_show(struct seq_file *s, void *v)
10361036
dev_name(chip->dev), chip->npwm,
10371037
(chip->npwm != 1) ? "s" : "");
10381038

1039-
if (chip->ops->dbg_show)
1040-
chip->ops->dbg_show(chip, s);
1041-
else
1042-
pwm_dbg_show(chip, s);
1039+
pwm_dbg_show(chip, s);
10431040

10441041
return 0;
10451042
}

include/linux/pwm.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ pwm_set_relative_duty_cycle(struct pwm_state *state, unsigned int duty_cycle,
254254
* @get_state: get the current PWM state. This function is only
255255
* called once per PWM device when the PWM chip is
256256
* registered.
257-
* @dbg_show: optional routine to show contents in debugfs
258257
* @owner: helps prevent removal of modules exporting active PWMs
259258
*/
260259
struct pwm_ops {
@@ -272,9 +271,6 @@ struct pwm_ops {
272271
struct pwm_state *state);
273272
void (*get_state)(struct pwm_chip *chip, struct pwm_device *pwm,
274273
struct pwm_state *state);
275-
#ifdef CONFIG_DEBUG_FS
276-
void (*dbg_show)(struct pwm_chip *chip, struct seq_file *s);
277-
#endif
278274
struct module *owner;
279275
};
280276

0 commit comments

Comments
 (0)