Commit 571e5894 authored by Diego Roux's avatar Diego Roux Committed by Greg Kroah-Hartman

staging: bcm2835-audio: Enclose complex macro value in parentheses

This patch fixes the checkpatch.pl error:

ERROR: Macros with complex values should be enclosed in parentheses
Signed-off-by: default avatarDiego Roux <me@diegoroux04.dynv6.net>
Link: https://lore.kernel.org/r/20210716024909.39411-1-me@diegoroux04.dynv6.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df006098
...@@ -22,7 +22,7 @@ enum { ...@@ -22,7 +22,7 @@ enum {
/* macros for alsa2chip and chip2alsa, instead of functions */ /* macros for alsa2chip and chip2alsa, instead of functions */
// convert alsa to chip volume (defined as macro rather than function call) // convert alsa to chip volume (defined as macro rather than function call)
#define alsa2chip(vol) (uint)(-(((vol) << 8) / 100)) #define alsa2chip(vol) ((uint)(-(((vol) << 8) / 100)))
// convert chip to alsa volume // convert chip to alsa volume
#define chip2alsa(vol) -(((vol) * 100) >> 8) #define chip2alsa(vol) -(((vol) * 100) >> 8)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment