Changeset 652 for GPL/branches/uniaud32-next/lib32/internal.h
- Timestamp:
- Jan 24, 2021, 8:40:08 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/lib32/internal.h
r625 r652 1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Register map access API internal header … … 5 6 * 6 7 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> 7 *8 * This program is free software; you can redistribute it and/or modify9 * it under the terms of the GNU General Public License version 2 as10 * published by the Free Software Foundation.11 8 */ 12 /* from 4.19.163 */ 9 10 /* from 5.10.10 */ 13 11 14 12 #ifndef _REGMAP_INTERNAL_H … … 20 18 #include <linux/list.h> 21 19 #include <linux/wait.h> 22 #include <linux/timer.h>23 #include <linux/bitops.h>24 #include <linux/bitmap.h>25 20 26 21 struct regmap; … … 99 94 bool (*volatile_reg)(struct device *dev, unsigned int reg); 100 95 bool (*precious_reg)(struct device *dev, unsigned int reg); 96 bool (*writeable_noinc_reg)(struct device *dev, unsigned int reg); 101 97 bool (*readable_noinc_reg)(struct device *dev, unsigned int reg); 102 98 const struct regmap_access_table *wr_table; … … 104 100 const struct regmap_access_table *volatile_table; 105 101 const struct regmap_access_table *precious_table; 102 const struct regmap_access_table *wr_noinc_table; 106 103 const struct regmap_access_table *rd_noinc_table; 107 104 … … 154 151 /* if set, converts bulk read to single read */ 155 152 bool use_single_read; 156 /* if set, converts bulk read to single read*/153 /* if set, converts bulk write to single write */ 157 154 bool use_single_write; 158 155 /* if set, the device supports multi write mode */ … … 167 164 168 165 struct hwspinlock *hwlock; 166 167 /* if set, the regmap core can sleep */ 168 bool can_sleep; 169 169 }; 170 170 … … 188 188 bool regmap_volatile(struct regmap *map, unsigned int reg); 189 189 bool regmap_precious(struct regmap *map, unsigned int reg); 190 bool regmap_writeable_noinc(struct regmap *map, unsigned int reg); 190 191 bool regmap_readable_noinc(struct regmap *map, unsigned int reg); 191 192 … … 222 223 #ifdef CONFIG_DEBUG_FS 223 224 extern void regmap_debugfs_initcall(void); 224 extern void regmap_debugfs_init(struct regmap *map , const char *name);225 extern void regmap_debugfs_init(struct regmap *map); 225 226 extern void regmap_debugfs_exit(struct regmap *map); 226 227 … … 232 233 #else 233 234 static inline void regmap_debugfs_initcall(void) { } 234 static inline void regmap_debugfs_init(struct regmap *map , const char *name) { }235 static inline void regmap_debugfs_init(struct regmap *map) { } 235 236 static inline void regmap_debugfs_exit(struct regmap *map) { } 236 237 static inline void regmap_debugfs_disable(struct regmap *map) { } … … 264 265 265 266 int _regmap_raw_write(struct regmap *map, unsigned int reg, 266 const void *val, size_t val_len );267 const void *val, size_t val_len, bool noinc); 267 268 268 269 void regmap_async_complete_cb(struct regmap_async *async, int ret);
Note:
See TracChangeset
for help on using the changeset viewer.