OSDN Git Service

greybus: gb-audio: Clean up codec name generation
authorMark A. Greer <mgreer@animalcreek.com>
Thu, 21 May 2015 22:56:56 +0000 (15:56 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 23 May 2015 23:26:41 +0000 (16:26 -0700)
commit34aa7e1cadef05f9494ff1f0c4977e762d9f32fa
treebaec956fead73ff5e652626cca4df6cd269218f8
parent555a0645b17114c559a2079ed64a8edb079b2339
greybus: gb-audio: Clean up codec name generation

Instead of using the fixed suffix, '6-001b', in the
codec name, generate it from the I2S adapter number
and I2C address of the codec.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio.c
drivers/staging/greybus/audio.h