blob: d62a4d9b0548072a4e4ec21b6431389f0299f0b8 [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2009-2011, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13#ifndef LINUX_BMA150_MODULE_H
14#define LINUX_BMA150_MODULE_H
15
16/**
17 * struct bma150_platform_data - data to set up bma150 driver
18 *
19 * @setup: optional callback to activate the driver.
20 * @teardown: optional callback to invalidate the driver.
21 *
22**/
23
24struct bma150_platform_data {
25 int (*setup)(struct device *);
26 void (*teardown)(struct device *);
27 int (*power_on)(void);
28 void (*power_off)(void);
29};
30
31#endif /* LINUX_BMA150_MODULE_H */