]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: cs4349: Drop platform data support
authorAxel Lin <axel.lin@ingics.com>
Sun, 19 Jul 2015 01:15:38 +0000 (09:15 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 20 Jul 2015 17:18:46 +0000 (18:18 +0100)
The struct cs4349_platform_data should be defined in a public header in
include/sound/ rather than in sound/soc/codecs folder.
In additional, the platform data support is not properly handled in this
driver so remove it now.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs4349.c
sound/soc/codecs/cs4349.h

index a6604a34db347769dca3b1806a8080ce10288c36..2569010ee3962ce4f30b7622da3fff65471a0708 100644 (file)
@@ -45,7 +45,6 @@ static const struct reg_default cs4349_reg_defaults[] = {
 /* Private data for the CS4349 */
 struct  cs4349_private {
        struct regmap                   *regmap;
-       struct cs4349_platform_data     pdata;
        struct gpio_desc                *reset_gpio;
        unsigned int                    mode;
        int                             rate;
@@ -281,8 +280,7 @@ static int cs4349_i2c_probe(struct i2c_client *client,
                                      const struct i2c_device_id *id)
 {
        struct cs4349_private *cs4349;
-       struct cs4349_platform_data *pdata = dev_get_platdata(&client->dev);
-       int ret = 0;
+       int ret;
 
        cs4349 = devm_kzalloc(&client->dev, sizeof(*cs4349), GFP_KERNEL);
        if (!cs4349)
@@ -295,9 +293,6 @@ static int cs4349_i2c_probe(struct i2c_client *client,
                return ret;
        }
 
-       if (pdata)
-               cs4349->pdata = *pdata;
-
        /* Reset the Device */
        cs4349->reset_gpio = devm_gpiod_get_optional(&client->dev,
                "reset", GPIOD_OUT_LOW);
index 7effa0acec28e00a680c95a28b6b7cd5891b5db4..d58c06a25358e4b99b8021455a9d0c1d8d5d9d08 100644 (file)
 #ifndef __CS4349_H__
 #define __CS4349_H__
 
-struct cs4349_platform_data {
-
-       /* GPIO for Reset */
-       unsigned int gpio_nreset;
-
-};
-
 /* CS4349 registers addresses */
 #define CS4349_CHIPID          0x01    /* Device and Rev ID, Read Only */
 #define CS4349_MODE            0x02    /* Mode Control */