max9768 44 sound/soc/codecs/max9768.c struct max9768 *max9768 = snd_soc_component_get_drvdata(c); max9768 45 sound/soc/codecs/max9768.c int val = gpio_get_value_cansleep(max9768->mute_gpio); max9768 56 sound/soc/codecs/max9768.c struct max9768 *max9768 = snd_soc_component_get_drvdata(c); max9768 58 sound/soc/codecs/max9768.c gpio_set_value_cansleep(max9768->mute_gpio, !ucontrol->value.integer.value[0]); max9768 131 sound/soc/codecs/max9768.c struct max9768 *max9768 = snd_soc_component_get_drvdata(component); max9768 134 sound/soc/codecs/max9768.c if (max9768->flags & MAX9768_FLAG_CLASSIC_PWM) { max9768 135 sound/soc/codecs/max9768.c ret = regmap_write(max9768->regmap, MAX9768_CTRL, max9768 141 sound/soc/codecs/max9768.c if (gpio_is_valid(max9768->mute_gpio)) { max9768 173 sound/soc/codecs/max9768.c struct max9768 *max9768; max9768 177 sound/soc/codecs/max9768.c max9768 = devm_kzalloc(&client->dev, sizeof(*max9768), GFP_KERNEL); max9768 178 sound/soc/codecs/max9768.c if (!max9768) max9768 185 sound/soc/codecs/max9768.c max9768->mute_gpio = err ?: pdata->mute_gpio; max9768 190 sound/soc/codecs/max9768.c max9768->shdn_gpio = err ?: pdata->shdn_gpio; max9768 192 sound/soc/codecs/max9768.c max9768->flags = pdata->flags; max9768 194 sound/soc/codecs/max9768.c max9768->shdn_gpio = -EINVAL; max9768 195 sound/soc/codecs/max9768.c max9768->mute_gpio = -EINVAL; max9768 198 sound/soc/codecs/max9768.c i2c_set_clientdata(client, max9768); max9768 200 sound/soc/codecs/max9768.c max9768->regmap = devm_regmap_init_i2c(client, &max9768_i2c_regmap_config); max9768 201 sound/soc/codecs/max9768.c if (IS_ERR(max9768->regmap)) max9768 202 sound/soc/codecs/max9768.c return PTR_ERR(max9768->regmap);