ASoC: codecs: aw88261: Remove AW88261_I2C_NAME macro

Replace the macro by its simple string value, to make the code less
unnecessarily complicated.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://patch.msgid.link/20260109-aw88261-dt-v1-1-45840c7632a3@fairphone.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Luca Weiss 2026-01-09 16:02:05 +01:00 committed by Mark Brown
parent 0cd9bf6a6d
commit e76f8c269e
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
2 changed files with 2 additions and 4 deletions

View File

@ -1264,14 +1264,14 @@ static int aw88261_i2c_probe(struct i2c_client *i2c)
}
static const struct i2c_device_id aw88261_i2c_id[] = {
{ AW88261_I2C_NAME },
{ "aw88261" },
{ }
};
MODULE_DEVICE_TABLE(i2c, aw88261_i2c_id);
static struct i2c_driver aw88261_i2c_driver = {
.driver = {
.name = AW88261_I2C_NAME,
.name = "aw88261",
},
.probe = aw88261_i2c_probe,
.id_table = aw88261_i2c_id,

View File

@ -370,8 +370,6 @@
#define AW88261_START_RETRIES (5)
#define AW88261_START_WORK_DELAY_MS (0)
#define AW88261_I2C_NAME "aw88261"
#define AW88261_RATES (SNDRV_PCM_RATE_8000_48000 | \
SNDRV_PCM_RATE_96000)
#define AW88261_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \