treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / sound / soc / codecs / adau1977.h
blob80baeb4f39b9a1f366b0ae8c90c341c8fa474b7f
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * ADAU1977/ADAU1978/ADAU1979 driver
5 * Copyright 2014 Analog Devices Inc.
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
7 */
9 #ifndef __SOUND_SOC_CODECS_ADAU1977_H__
10 #define __SOUND_SOC_CODECS_ADAU1977_H__
12 #include <linux/regmap.h>
14 struct device;
16 enum adau1977_type {
17 ADAU1977,
18 ADAU1978,
19 ADAU1979,
22 int adau1977_probe(struct device *dev, struct regmap *regmap,
23 enum adau1977_type type, void (*switch_mode)(struct device *dev));
25 extern const struct regmap_config adau1977_regmap_config;
27 enum adau1977_clk_id {
28 ADAU1977_SYSCLK,
31 enum adau1977_sysclk_src {
32 ADAU1977_SYSCLK_SRC_MCLK,
33 ADAU1977_SYSCLK_SRC_LRCLK,
36 #endif