![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* 0003 * Copyright 2008 Openmoko, Inc. 0004 * Copyright 2008 Simtec Electronics 0005 * Ben Dooks <ben@simtec.co.uk> 0006 * 0007 * S3C - I2C Controller core functions 0008 */ 0009 0010 #ifndef __ASM_ARCH_IIC_CORE_H 0011 #define __ASM_ARCH_IIC_CORE_H __FILE__ 0012 0013 /* These functions are only for use with the core support code, such as 0014 * the cpu specific initialisation code 0015 */ 0016 0017 /* re-define device name depending on support. */ 0018 static inline void s3c_i2c0_setname(char *name) 0019 { 0020 /* currently this device is always compiled in */ 0021 s3c_device_i2c0.name = name; 0022 } 0023 0024 static inline void s3c_i2c1_setname(char *name) 0025 { 0026 #ifdef CONFIG_S3C_DEV_I2C1 0027 s3c_device_i2c1.name = name; 0028 #endif 0029 } 0030 0031 static inline void s3c_i2c2_setname(char *name) 0032 { 0033 #ifdef CONFIG_S3C_DEV_I2C2 0034 s3c_device_i2c2.name = name; 0035 #endif 0036 } 0037 0038 #endif /* __ASM_ARCH_IIC_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |