mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ASoC: Fix I2C component device id number creation
Use bitwise AND instead of logical AND when masking. Signed-off-by: Jarkko Nikula <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
e86e1244a4
commit
0589944661
1 changed files with 1 additions and 1 deletions
|
|
@ -2929,7 +2929,7 @@ static inline char *fmt_single_name(struct device *dev, int *id)
|
|||
char tmp[NAME_SIZE];
|
||||
|
||||
/* create unique ID number from I2C addr and bus */
|
||||
*id = ((id1 && 0xffff) << 16) + id2;
|
||||
*id = ((id1 & 0xffff) << 16) + id2;
|
||||
|
||||
/* sanitize component name for DAI link creation */
|
||||
snprintf(tmp, NAME_SIZE, "%s.%s", dev->driver->name, name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue