mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ALSA: hda: Return true,false for return type bool
Fix the following coccicheck warning: include/sound/hdaudio.h:210:73-74: WARNING: return of 0/1 in function 'snd_hdac_is_in_pm' with return type bool include/sound/hdaudio.h:211:76-77: WARNING: return of 0/1 in function 'snd_hdac_is_power_on' with return type bool Signed-off-by: Jason Yan <yanaijie@huawei.com> Link: https://lore.kernel.org/r/20200506061716.19209-1-yanaijie@huawei.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8c11827bba
commit
79263c3bce
1 changed files with 2 additions and 2 deletions
|
@ -207,8 +207,8 @@ static inline int snd_hdac_power_down_pm(struct hdac_device *codec) { return 0;
|
||||||
static inline int snd_hdac_keep_power_up(struct hdac_device *codec) { return 0; }
|
static inline int snd_hdac_keep_power_up(struct hdac_device *codec) { return 0; }
|
||||||
static inline void snd_hdac_enter_pm(struct hdac_device *codec) {}
|
static inline void snd_hdac_enter_pm(struct hdac_device *codec) {}
|
||||||
static inline void snd_hdac_leave_pm(struct hdac_device *codec) {}
|
static inline void snd_hdac_leave_pm(struct hdac_device *codec) {}
|
||||||
static inline bool snd_hdac_is_in_pm(struct hdac_device *codec) { return 0; }
|
static inline bool snd_hdac_is_in_pm(struct hdac_device *codec) { return false; }
|
||||||
static inline bool snd_hdac_is_power_on(struct hdac_device *codec) { return 1; }
|
static inline bool snd_hdac_is_power_on(struct hdac_device *codec) { return true; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue