leds-lm3642.h (818B)
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3* Copyright (C) 2012 Texas Instruments 4* 5* Simple driver for Texas Instruments LM3642 LED driver chip 6* 7* Author: G.Shark Jeong <gshark.jeong@gmail.com> 8* Daniel Jeong <daniel.jeong@ti.com> 9*/ 10 11#ifndef __LINUX_LM3642_H 12#define __LINUX_LM3642_H 13 14#define LM3642_NAME "leds-lm3642" 15 16enum lm3642_torch_pin_enable { 17 LM3642_TORCH_PIN_DISABLE = 0x00, 18 LM3642_TORCH_PIN_ENABLE = 0x10, 19}; 20 21enum lm3642_strobe_pin_enable { 22 LM3642_STROBE_PIN_DISABLE = 0x00, 23 LM3642_STROBE_PIN_ENABLE = 0x20, 24}; 25 26enum lm3642_tx_pin_enable { 27 LM3642_TX_PIN_DISABLE = 0x00, 28 LM3642_TX_PIN_ENABLE = 0x40, 29}; 30 31struct lm3642_platform_data { 32 enum lm3642_torch_pin_enable torch_pin; 33 enum lm3642_strobe_pin_enable strobe_pin; 34 enum lm3642_tx_pin_enable tx_pin; 35}; 36 37#endif /* __LINUX_LM3642_H */