Lines Matching full:lochnagar
3 // Lochnagar regulator driver
22 #include <linux/mfd/lochnagar.h>
45 struct lochnagar *lochnagar = rdev_get_drvdata(rdev); in lochnagar_micbias_enable() local
48 mutex_lock(&lochnagar->analogue_config_lock); in lochnagar_micbias_enable()
54 ret = lochnagar_update_config(lochnagar); in lochnagar_micbias_enable()
57 mutex_unlock(&lochnagar->analogue_config_lock); in lochnagar_micbias_enable()
64 struct lochnagar *lochnagar = rdev_get_drvdata(rdev); in lochnagar_micbias_disable() local
67 mutex_lock(&lochnagar->analogue_config_lock); in lochnagar_micbias_disable()
73 ret = lochnagar_update_config(lochnagar); in lochnagar_micbias_disable()
76 mutex_unlock(&lochnagar->analogue_config_lock); in lochnagar_micbias_disable()
115 struct lochnagar *lochnagar = config->driver_data; in lochnagar_micbias_of_parse() local
124 mutex_lock(&lochnagar->analogue_config_lock); in lochnagar_micbias_of_parse()
125 ret = regmap_update_bits(lochnagar->regmap, in lochnagar_micbias_of_parse()
128 mutex_unlock(&lochnagar->analogue_config_lock); in lochnagar_micbias_of_parse()
130 dev_err(lochnagar->dev, in lochnagar_micbias_of_parse()
243 struct lochnagar *lochnagar = dev_get_drvdata(dev->parent); in lochnagar_regulator_probe() local
250 config.regmap = lochnagar->regmap; in lochnagar_regulator_probe()
251 config.driver_data = lochnagar; in lochnagar_regulator_probe()
270 .name = "lochnagar-regulator",
280 MODULE_DESCRIPTION("Regulator driver for Cirrus Logic Lochnagar Board");
282 MODULE_ALIAS("platform:lochnagar-regulator");