~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/media/i2c/lm3646.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/media/i2c/lm3646.h (Version linux-6.12-rc7) and /include/media/i2c/lm3646.h (Version linux-3.10.108)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * include/media/i2c/lm3646.h                     
  4  *                                                
  5  * Copyright (C) 2014 Texas Instruments           
  6  *                                                
  7  * Contact: Daniel Jeong <gshark.jeong@gmail.c    
  8  *                      Ldd-Mlp <ldd-mlp@list.    
  9  */                                               
 10                                                   
 11 #ifndef __LM3646_H__                              
 12 #define __LM3646_H__                              
 13                                                   
 14 #include <media/v4l2-subdev.h>                    
 15                                                   
 16 #define LM3646_NAME     "lm3646"                  
 17 #define LM3646_I2C_ADDR_REV1    (0x67)            
 18 #define LM3646_I2C_ADDR_REV0    (0x63)            
 19                                                   
 20 /*  TOTAL FLASH Brightness Max                    
 21  *      min 93350uA, step 93750uA, max 1499600    
 22  */                                               
 23 #define LM3646_TOTAL_FLASH_BRT_MIN 93350          
 24 #define LM3646_TOTAL_FLASH_BRT_STEP 93750         
 25 #define LM3646_TOTAL_FLASH_BRT_MAX 1499600        
 26 #define LM3646_TOTAL_FLASH_BRT_uA_TO_REG(a)       
 27         ((a) < LM3646_TOTAL_FLASH_BRT_MIN ? 0     
 28          ((((a) - LM3646_TOTAL_FLASH_BRT_MIN)     
 29                                                   
 30 /*  TOTAL TORCH Brightness Max                    
 31  *      min 23040uA, step 23430uA, max 187100u    
 32  */                                               
 33 #define LM3646_TOTAL_TORCH_BRT_MIN 23040          
 34 #define LM3646_TOTAL_TORCH_BRT_STEP 23430         
 35 #define LM3646_TOTAL_TORCH_BRT_MAX 187100         
 36 #define LM3646_TOTAL_TORCH_BRT_uA_TO_REG(a)       
 37         ((a) < LM3646_TOTAL_TORCH_BRT_MIN ? 0     
 38          ((((a) - LM3646_TOTAL_TORCH_BRT_MIN)     
 39                                                   
 40 /*  LED1 FLASH Brightness                         
 41  *      min 23040uA, step 11718uA, max 1499600    
 42  */                                               
 43 #define LM3646_LED1_FLASH_BRT_MIN 23040           
 44 #define LM3646_LED1_FLASH_BRT_STEP 11718          
 45 #define LM3646_LED1_FLASH_BRT_MAX 1499600         
 46 #define LM3646_LED1_FLASH_BRT_uA_TO_REG(a)        
 47         ((a) <= LM3646_LED1_FLASH_BRT_MIN ? 0     
 48          ((((a) - LM3646_LED1_FLASH_BRT_MIN) /    
 49                                                   
 50 /*  LED1 TORCH Brightness                         
 51  *      min 2530uA, step 1460uA, max 187100uA     
 52  */                                               
 53 #define LM3646_LED1_TORCH_BRT_MIN 2530            
 54 #define LM3646_LED1_TORCH_BRT_STEP 1460           
 55 #define LM3646_LED1_TORCH_BRT_MAX 187100          
 56 #define LM3646_LED1_TORCH_BRT_uA_TO_REG(a)        
 57         ((a) <= LM3646_LED1_TORCH_BRT_MIN ? 0     
 58          ((((a) - LM3646_LED1_TORCH_BRT_MIN) /    
 59                                                   
 60 /*  FLASH TIMEOUT DURATION                        
 61  *      min 50ms, step 50ms, max 400ms            
 62  */                                               
 63 #define LM3646_FLASH_TOUT_MIN 50                  
 64 #define LM3646_FLASH_TOUT_STEP 50                 
 65 #define LM3646_FLASH_TOUT_MAX 400                 
 66 #define LM3646_FLASH_TOUT_ms_TO_REG(a)  \         
 67         ((a) <= LM3646_FLASH_TOUT_MIN ? 0 :       
 68          (((a) - LM3646_FLASH_TOUT_MIN) / LM36    
 69                                                   
 70 /* struct lm3646_platform_data                    
 71  *                                                
 72  * @flash_timeout: flash timeout                  
 73  * @led1_flash_brt: led1 flash mode brightness    
 74  * @led1_torch_brt: led1 torch mode brightness    
 75  */                                               
 76 struct lm3646_platform_data {                     
 77                                                   
 78         u32 flash_timeout;                        
 79                                                   
 80         u32 led1_flash_brt;                       
 81         u32 led1_torch_brt;                       
 82 };                                                
 83                                                   
 84 #endif /* __LM3646_H__ */                         
 85                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php