]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: sound: Start i2c IDs from 0
authorSimon Glass <sjg@chromium.org>
Mon, 10 Dec 2018 17:37:38 +0000 (10:37 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Dec 2018 23:32:49 +0000 (16:32 -0700)
commit6c986cfef4a104ad39faf381014b7c315984cab8
tree89ff78727605b00a24bc9a6f17b3ef9827e0c25a
parenta1b17e4f4c820c5ffe77ffa0c716e8b3b5d69866
dm: sound: Start i2c IDs from 0

The current ID enums start from 1 but there does not seem to be any reason
that they cannot start with 0. Adjust the code to avoid the +1 in
codec_init().

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/sound/max98095.h
drivers/sound/sound-i2s.c
drivers/sound/wm8994.h