mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 16:18:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										43
									
								
								drivers/soc/samsung/pwrcal/pwrcal-env.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								drivers/soc/samsung/pwrcal/pwrcal-env.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,43 @@ | |||
| #ifndef __PWRCAL_INCLUDE_H__ | ||||
| #define __PWRCAL_INCLUDE_H__ | ||||
| 
 | ||||
| #ifdef CONFIG_PWRCAL | ||||
| 
 | ||||
| #define PWRCAL_TARGET_LINUX | ||||
| 
 | ||||
| #include <linux/spinlock.h> | ||||
| #include <linux/math64.h> | ||||
| #include <linux/smc.h> | ||||
| #include <linux/delay.h> | ||||
| #include <soc/samsung/ect_parser.h> | ||||
| 
 | ||||
| #else | ||||
| 
 | ||||
| #define PWRCAL_TARGET_FW | ||||
| 
 | ||||
| #include "types.h" | ||||
| #include "console.h" | ||||
| #include "kernel/spinlock.h" | ||||
| #include <string.h> | ||||
| #include <common.h> | ||||
| #include <kernel/timer.h> | ||||
| #include <kernel/panic.h> | ||||
| #include <compat.h> | ||||
| #include <mach/ect_parser.h> | ||||
| 
 | ||||
| #define pr_err(_msg, args...)	\ | ||||
| 	console_printf(0, "\033[1;31;5merror::func=%s, "_msg"\033[0m\n", \ | ||||
| 							__func__, ##args); | ||||
| #define pr_warn(_msg, args...)	\ | ||||
| 	console_printf(1, "\033[1;31;5mwarning::func=%s, "_msg"\033[0m\n", \ | ||||
| 							__func__, ##args); | ||||
| #define pr_info(_msg, args...)	\ | ||||
| 	console_printf(4, _msg, ##args) | ||||
| 
 | ||||
| #define do_div(a, b)		(a /= b) | ||||
| 
 | ||||
| #define spin_lock_init(x)	initialize_spinlock(x) | ||||
| #define cpu_relax()		udelay(1) | ||||
| #endif | ||||
| 
 | ||||
| #endif | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228