Ignore:
Timestamp:
Jan 24, 2021, 8:40:08 AM (5 years ago)
Author:
Paul Smedley
Message:

Update regmap & regcache to 5.10.10 kernel code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/lib32/internal.h

    r625 r652  
     1/* SPDX-License-Identifier: GPL-2.0 */
    12/*
    23 * Register map access API internal header
     
    56 *
    67 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
    7  *
    8  * This program is free software; you can redistribute it and/or modify
    9  * it under the terms of the GNU General Public License version 2 as
    10  * published by the Free Software Foundation.
    118 */
    12 /* from 4.19.163 */
     9
     10/* from 5.10.10 */
    1311
    1412#ifndef _REGMAP_INTERNAL_H
     
    2018#include <linux/list.h>
    2119#include <linux/wait.h>
    22 #include <linux/timer.h>
    23 #include <linux/bitops.h>
    24 #include <linux/bitmap.h>
    2520
    2621struct regmap;
     
    9994        bool (*volatile_reg)(struct device *dev, unsigned int reg);
    10095        bool (*precious_reg)(struct device *dev, unsigned int reg);
     96        bool (*writeable_noinc_reg)(struct device *dev, unsigned int reg);
    10197        bool (*readable_noinc_reg)(struct device *dev, unsigned int reg);
    10298        const struct regmap_access_table *wr_table;
     
    104100        const struct regmap_access_table *volatile_table;
    105101        const struct regmap_access_table *precious_table;
     102        const struct regmap_access_table *wr_noinc_table;
    106103        const struct regmap_access_table *rd_noinc_table;
    107104
     
    154151        /* if set, converts bulk read to single read */
    155152        bool use_single_read;
    156         /* if set, converts bulk read to single read */
     153        /* if set, converts bulk write to single write */
    157154        bool use_single_write;
    158155        /* if set, the device supports multi write mode */
     
    167164
    168165        struct hwspinlock *hwlock;
     166
     167        /* if set, the regmap core can sleep */
     168        bool can_sleep;
    169169};
    170170
     
    188188bool regmap_volatile(struct regmap *map, unsigned int reg);
    189189bool regmap_precious(struct regmap *map, unsigned int reg);
     190bool regmap_writeable_noinc(struct regmap *map, unsigned int reg);
    190191bool regmap_readable_noinc(struct regmap *map, unsigned int reg);
    191192
     
    222223#ifdef CONFIG_DEBUG_FS
    223224extern void regmap_debugfs_initcall(void);
    224 extern void regmap_debugfs_init(struct regmap *map, const char *name);
     225extern void regmap_debugfs_init(struct regmap *map);
    225226extern void regmap_debugfs_exit(struct regmap *map);
    226227
     
    232233#else
    233234static inline void regmap_debugfs_initcall(void) { }
    234 static inline void regmap_debugfs_init(struct regmap *map, const char *name) { }
     235static inline void regmap_debugfs_init(struct regmap *map) { }
    235236static inline void regmap_debugfs_exit(struct regmap *map) { }
    236237static inline void regmap_debugfs_disable(struct regmap *map) { }
     
    264265
    265266int _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);
    267268
    268269void regmap_async_complete_cb(struct regmap_async *async, int ret);
Note: See TracChangeset for help on using the changeset viewer.