Maemo patchset 20101501+0m5
[h-e-n] / include / linux / i2c / tpa6130a2.h
diff --git a/include/linux/i2c/tpa6130a2.h b/include/linux/i2c/tpa6130a2.h
new file mode 100644 (file)
index 0000000..5cae5dd
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * TPA6130A2 driver headers
+ *
+ * Copyright (C) Nokia Corporation
+ *
+ * Written by Timo Kokkonen <timo.t.kokkonen@nokia.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+
+#ifndef TPA6130A2_H
+#define TPA6130A2_H
+
+struct tpa6130a2_platform_data {
+       int (*set_power)(int state);
+};
+
+void tpa6130a2_set_enabled(int enabled);
+int tpa6130a2_get_volume(void);
+int tpa6130a2_set_volume(int vol);
+
+#endif