Skip to content

Commit

Permalink
pwm: lpss: Include headers we are the direct user of
Browse files Browse the repository at this point in the history
For the sake of integrity, include headers we are the direct
user of.

Replace the inclusion of device.h by a forward declaration
of struct device plus a (cheaper) of types.h as device.h is
an expensive include (measured in compiler effort).

Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
  • Loading branch information
andy-shev committed Nov 22, 2022
1 parent 739f90f commit 878cf97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/pwm/pwm-lpss.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
#ifndef __PWM_LPSS_H
#define __PWM_LPSS_H

#include <linux/device.h>
#include <linux/pwm.h>
#include <linux/types.h>

struct device;

#define LPSS_MAX_PWMS 4

Expand Down

0 comments on commit 878cf97

Please sign in to comment.