2 * tps61059.h - Register definitions for the TPS61059 Flash Chip.
4 * Copyright (C) 2009 Texas Instruments.
7 * Pallavi Kulkarni <p-kulkarni@ti.com>
8 * Sergio Aguirre <saaguirre@ti.com>
10 * This file is licensed under the terms of the GNU General Public License
11 * version 2. This program is licensed "as is" without any warranty of any
12 * kind, whether express or implied.
18 #include <media/v4l2-int-device.h>
21 * struct tps61059_platform_data - platform data values and access functions
22 * @power_set: Power state access function, zero is off, non-zero is on.
23 * @flash_on: Turn on the flash.
24 * @flash_off: Turn off the flash.
25 * @update_hw: Depending on the torch intensity, turn on/off torch.
26 * @priv_data_set: device private data (pointer) access function
28 struct tps61059_platform_data
{
29 void (*flash_on
)(void);
30 void (*flash_off
)(void);
31 void (*s_torch_intensity
)(u32 value
);
32 int (*priv_data_set
)(void *);
35 #endif /* ifndef TPS61059_H */