diff options
Diffstat (limited to 'sound/aoa/codecs/snd-aoa-codec-tas.c')
-rw-r--r-- | sound/aoa/codecs/snd-aoa-codec-tas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/aoa/codecs/snd-aoa-codec-tas.c b/sound/aoa/codecs/snd-aoa-codec-tas.c index 041fe52cbf29..2f771f57c76f 100644 --- a/sound/aoa/codecs/snd-aoa-codec-tas.c +++ b/sound/aoa/codecs/snd-aoa-codec-tas.c | |||
@@ -899,14 +899,14 @@ static int tas_create(struct i2c_adapter *adapter, | |||
899 | tas->i2c.addr = addr; | 899 | tas->i2c.addr = addr; |
900 | /* seems that half is a saner default */ | 900 | /* seems that half is a saner default */ |
901 | tas->drc_range = TAS3004_DRC_MAX / 2; | 901 | tas->drc_range = TAS3004_DRC_MAX / 2; |
902 | strlcpy(tas->i2c.name, "tas audio codec", I2C_NAME_SIZE-1); | 902 | strlcpy(tas->i2c.name, "tas audio codec", I2C_NAME_SIZE); |
903 | 903 | ||
904 | if (i2c_attach_client(&tas->i2c)) { | 904 | if (i2c_attach_client(&tas->i2c)) { |
905 | printk(KERN_ERR PFX "failed to attach to i2c\n"); | 905 | printk(KERN_ERR PFX "failed to attach to i2c\n"); |
906 | goto fail; | 906 | goto fail; |
907 | } | 907 | } |
908 | 908 | ||
909 | strlcpy(tas->codec.name, "tas", MAX_CODEC_NAME_LEN-1); | 909 | strlcpy(tas->codec.name, "tas", MAX_CODEC_NAME_LEN); |
910 | tas->codec.owner = THIS_MODULE; | 910 | tas->codec.owner = THIS_MODULE; |
911 | tas->codec.init = tas_init_codec; | 911 | tas->codec.init = tas_init_codec; |
912 | tas->codec.exit = tas_exit_codec; | 912 | tas->codec.exit = tas_exit_codec; |