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

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/syscon.h

Version: ~ [ linux-6.0-rc1 ] ~ [ linux-5.19.1 ] ~ [ linux-5.18.17 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.60 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.136 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.210 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.255 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.290 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.325 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.302 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * System Control Driver
  3  *
  4  * Copyright (C) 2012 Freescale Semiconductor, Inc.
  5  * Copyright (C) 2012 Linaro Ltd.
  6  *
  7  * Author: Dong Aisheng <dong.aisheng@linaro.org>
  8  *
  9  * This program is free software; you can redistribute it and/or modify
 10  * it under the terms of the GNU General Public License as published by
 11  * the Free Software Foundation; either version 2 of the License, or
 12  * (at your option) any later version.
 13  */
 14 
 15 #ifndef __LINUX_MFD_SYSCON_H__
 16 #define __LINUX_MFD_SYSCON_H__
 17 
 18 #include <linux/err.h>
 19 #include <linux/errno.h>
 20 
 21 struct device_node;
 22 
 23 #ifdef CONFIG_MFD_SYSCON
 24 extern struct regmap *syscon_node_to_regmap(struct device_node *np);
 25 extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s);
 26 extern struct regmap *syscon_regmap_lookup_by_pdevname(const char *s);
 27 extern struct regmap *syscon_regmap_lookup_by_phandle(
 28                                         struct device_node *np,
 29                                         const char *property);
 30 #else
 31 static inline struct regmap *syscon_node_to_regmap(struct device_node *np)
 32 {
 33         return ERR_PTR(-ENOTSUPP);
 34 }
 35 
 36 static inline struct regmap *syscon_regmap_lookup_by_compatible(const char *s)
 37 {
 38         return ERR_PTR(-ENOTSUPP);
 39 }
 40 
 41 static inline struct regmap *syscon_regmap_lookup_by_pdevname(const char *s)
 42 {
 43         return ERR_PTR(-ENOTSUPP);
 44 }
 45 
 46 static inline struct regmap *syscon_regmap_lookup_by_phandle(
 47                                         struct device_node *np,
 48                                         const char *property)
 49 {
 50         return ERR_PTR(-ENOTSUPP);
 51 }
 52 #endif
 53 
 54 #endif /* __LINUX_MFD_SYSCON_H__ */
 55 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp