Changeset 724


Ignore:
Timestamp:
Sep 4, 2022, 11:22:12 AM (3 years ago)
Author:
Paul Smedley
Message:

Revert unnecessary patches

Location:
GPL/branches/uniaud32-next/lib32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/lib32/regcache.c

    r721 r724  
    2222#include "internal.h"
    2323
    24 /*static*/ const struct regcache_ops *cache_types[] = {
     24static const struct regcache_ops *cache_types[] = {
    2525        &regcache_rbtree_ops,
    2626#if IS_ENABLED(CONFIG_REGCACHE_COMPRESSED)
     
    3030};
    3131
    32 /*static*/ int regcache_hw_init(struct regmap *map)
     32static int regcache_hw_init(struct regmap *map)
    3333{
    3434        int i, j;
     
    283283}
    284284
    285 /*static*/ bool regcache_reg_needs_sync(struct regmap *map, unsigned int reg,
     285static bool regcache_reg_needs_sync(struct regmap *map, unsigned int reg,
    286286                                    unsigned int val)
    287287{
     
    299299}
    300300
    301 /*static*/ int regcache_default_sync(struct regmap *map, unsigned int min,
     301static int regcache_default_sync(struct regmap *map, unsigned int min,
    302302                                 unsigned int max)
    303303{
     
    649649}
    650650
    651 /*static*/ int regcache_default_cmp(const void *a, const void *b)
     651static int regcache_default_cmp(const void *a, const void *b)
    652652{
    653653        const struct reg_default *_a = a;
     
    674674}
    675675
    676 /*static*/ bool regcache_reg_present(unsigned long *cache_present, unsigned int idx)
     676static bool regcache_reg_present(unsigned long *cache_present, unsigned int idx)
    677677{
    678678        if (!cache_present)
     
    682682}
    683683
    684 /*static*/ int regcache_sync_block_single(struct regmap *map, void *block,
     684static int regcache_sync_block_single(struct regmap *map, void *block,
    685685                                      unsigned long *cache_present,
    686686                                      unsigned int block_base,
     
    718718}
    719719
    720 /*static*/ int regcache_sync_block_raw_flush(struct regmap *map, const void **data,
     720static int regcache_sync_block_raw_flush(struct regmap *map, const void **data,
    721721                                         unsigned int base, unsigned int cur)
    722722{
     
    746746}
    747747
    748 /*static*/ int regcache_sync_block_raw(struct regmap *map, void *block,
     748static int regcache_sync_block_raw(struct regmap *map, void *block,
    749749                            unsigned long *cache_present,
    750750                            unsigned int block_base, unsigned int start,
  • GPL/branches/uniaud32-next/lib32/regmap.c

    r721 r724  
    4545
    4646#ifdef LOG_DEVICE
    47 /*static*/ inline bool regmap_should_log(struct regmap *map)
     47static inline bool regmap_should_log(struct regmap *map)
    4848{
    4949        return (map->dev && strcmp(dev_name(map->dev), LOG_DEVICE) == 0);
    5050}
    5151#else
    52 /*static*/ inline bool regmap_should_log(struct regmap *map) { return false; }
    53 #endif
    54 
    55 
    56 /*static*/ int _regmap_update_bits(struct regmap *map, unsigned int reg,
     52static inline bool regmap_should_log(struct regmap *map) { return false; }
     53#endif
     54
     55
     56static int _regmap_update_bits(struct regmap *map, unsigned int reg,
    5757                               unsigned int mask, unsigned int val,
    5858                               bool *change, bool force_write);
    5959
    60 /*static*/ int _regmap_bus_reg_read(void *context, unsigned int reg,
     60static int _regmap_bus_reg_read(void *context, unsigned int reg,
    6161                                unsigned int *val);
    62 /*static*/ int _regmap_bus_read(void *context, unsigned int reg,
     62static int _regmap_bus_read(void *context, unsigned int reg,
    6363                            unsigned int *val);
    64 /*static*/ int _regmap_bus_formatted_write(void *context, unsigned int reg,
     64static int _regmap_bus_formatted_write(void *context, unsigned int reg,
    6565                                       unsigned int val);
    66 /*static*/ int _regmap_bus_reg_write(void *context, unsigned int reg,
     66static int _regmap_bus_reg_write(void *context, unsigned int reg,
    6767                                 unsigned int val);
    68 /*static*/ int _regmap_bus_raw_write(void *context, unsigned int reg,
     68static int _regmap_bus_raw_write(void *context, unsigned int reg,
    6969                                 unsigned int val);
    7070
     
    209209}
    210210
    211 /*static*/ bool regmap_volatile_range(struct regmap *map, unsigned int reg,
     211static bool regmap_volatile_range(struct regmap *map, unsigned int reg,
    212212        size_t num)
    213213{
     
    221221}
    222222
    223 /*static*/ void regmap_format_12_20_write(struct regmap *map,
     223static void regmap_format_12_20_write(struct regmap *map,
    224224                                     unsigned int reg, unsigned int val)
    225225{
     
    233233
    234234
    235 /*static*/ void regmap_format_2_6_write(struct regmap *map,
     235static void regmap_format_2_6_write(struct regmap *map,
    236236                                     unsigned int reg, unsigned int val)
    237237{
     
    241241}
    242242
    243 /*static*/ void regmap_format_4_12_write(struct regmap *map,
     243static void regmap_format_4_12_write(struct regmap *map,
    244244                                     unsigned int reg, unsigned int val)
    245245{
     
    248248}
    249249
    250 /*static*/ void regmap_format_7_9_write(struct regmap *map,
     250static void regmap_format_7_9_write(struct regmap *map,
    251251                                    unsigned int reg, unsigned int val)
    252252{
     
    255255}
    256256
    257 /*static*/ void regmap_format_10_14_write(struct regmap *map,
     257static void regmap_format_10_14_write(struct regmap *map,
    258258                                    unsigned int reg, unsigned int val)
    259259{
     
    265265}
    266266
    267 /*static*/ void regmap_format_8(void *buf, unsigned int val, unsigned int shift)
     267static void regmap_format_8(void *buf, unsigned int val, unsigned int shift)
    268268{
    269269        u8 *b = buf;
     
    272272}
    273273
    274 /*static*/ void regmap_format_16_be(void *buf, unsigned int val, unsigned int shift)
     274static void regmap_format_16_be(void *buf, unsigned int val, unsigned int shift)
    275275{
    276276        put_unaligned_be16(val << shift, buf);
    277277}
    278278
    279 /*static*/ void regmap_format_16_le(void *buf, unsigned int val, unsigned int shift)
     279static void regmap_format_16_le(void *buf, unsigned int val, unsigned int shift)
    280280{
    281281        put_unaligned_le16(val << shift, buf);
    282282}
    283283
    284 /*static*/ void regmap_format_16_native(void *buf, unsigned int val,
     284static void regmap_format_16_native(void *buf, unsigned int val,
    285285                                    unsigned int shift)
    286286{
     
    290290}
    291291
    292 /*static*/ void regmap_format_24(void *buf, unsigned int val, unsigned int shift)
     292static void regmap_format_24(void *buf, unsigned int val, unsigned int shift)
    293293{
    294294        u8 *b = buf;
     
    301301}
    302302
    303 /*static*/ void regmap_format_32_be(void *buf, unsigned int val, unsigned int shift)
     303static void regmap_format_32_be(void *buf, unsigned int val, unsigned int shift)
    304304{
    305305        put_unaligned_be32(val << shift, buf);
    306306}
    307307
    308 /*static*/ void regmap_format_32_le(void *buf, unsigned int val, unsigned int shift)
     308static void regmap_format_32_le(void *buf, unsigned int val, unsigned int shift)
    309309{
    310310        put_unaligned_le32(val << shift, buf);
    311311}
    312312
    313 /*static*/ void regmap_format_32_native(void *buf, unsigned int val,
     313static void regmap_format_32_native(void *buf, unsigned int val,
    314314                                    unsigned int shift)
    315315{
     
    320320
    321321#ifdef CONFIG_64BIT
    322 /*static*/ void regmap_format_64_be(void *buf, unsigned int val, unsigned int shift)
     322static void regmap_format_64_be(void *buf, unsigned int val, unsigned int shift)
    323323{
    324324        put_unaligned_be64((u64) val << shift, buf);
    325325}
    326326
    327 /*static*/ void regmap_format_64_le(void *buf, unsigned int val, unsigned int shift)
     327static void regmap_format_64_le(void *buf, unsigned int val, unsigned int shift)
    328328{
    329329        put_unaligned_le64((u64) val << shift, buf);
    330330}
    331331
    332 /*static*/ void regmap_format_64_native(void *buf, unsigned int val,
     332static void regmap_format_64_native(void *buf, unsigned int val,
    333333                                    unsigned int shift)
    334334{
     
    339339#endif
    340340
    341 /*static*/ void regmap_parse_inplace_noop(void *buf)
    342 {
    343 }
    344 
    345 /*static*/ unsigned int regmap_parse_8(const void *buf)
     341static void regmap_parse_inplace_noop(void *buf)
     342{
     343}
     344
     345static unsigned int regmap_parse_8(const void *buf)
    346346{
    347347        const u8 *b = buf;
     
    350350}
    351351
    352 /*static*/ unsigned int regmap_parse_16_be(const void *buf)
     352static unsigned int regmap_parse_16_be(const void *buf)
    353353{
    354354        return get_unaligned_be16(buf);
    355355}
    356356
    357 /*static*/ unsigned int regmap_parse_16_le(const void *buf)
     357static unsigned int regmap_parse_16_le(const void *buf)
    358358{
    359359        return get_unaligned_le16(buf);
    360360}
    361361
    362 /*static*/ void regmap_parse_16_be_inplace(void *buf)
     362static void regmap_parse_16_be_inplace(void *buf)
    363363{
    364364        u16 v = get_unaligned_be16(buf);
     
    367367}
    368368
    369 /*static*/ void regmap_parse_16_le_inplace(void *buf)
     369static void regmap_parse_16_le_inplace(void *buf)
    370370{
    371371        u16 v = get_unaligned_le16(buf);
     
    374374}
    375375
    376 /*static*/ unsigned int regmap_parse_16_native(const void *buf)
     376static unsigned int regmap_parse_16_native(const void *buf)
    377377{
    378378        u16 v;
     
    382382}
    383383
    384 /*static*/ unsigned int regmap_parse_24(const void *buf)
     384static unsigned int regmap_parse_24(const void *buf)
    385385{
    386386        const u8 *b = buf;
     
    392392}
    393393
    394 /*static*/ unsigned int regmap_parse_32_be(const void *buf)
     394static unsigned int regmap_parse_32_be(const void *buf)
    395395{
    396396        return get_unaligned_be32(buf);
    397397}
    398398
    399 /*static*/ unsigned int regmap_parse_32_le(const void *buf)
     399static unsigned int regmap_parse_32_le(const void *buf)
    400400{
    401401        return get_unaligned_le32(buf);
    402402}
    403403
    404 /*static*/ void regmap_parse_32_be_inplace(void *buf)
     404static void regmap_parse_32_be_inplace(void *buf)
    405405{
    406406        u32 v = get_unaligned_be32(buf);
     
    409409}
    410410
    411 /*static*/ void regmap_parse_32_le_inplace(void *buf)
     411static void regmap_parse_32_le_inplace(void *buf)
    412412{
    413413        u32 v = get_unaligned_le32(buf);
     
    416416}
    417417
    418 /*static*/ unsigned int regmap_parse_32_native(const void *buf)
     418static unsigned int regmap_parse_32_native(const void *buf)
    419419{
    420420        u32 v;
     
    425425
    426426#ifdef CONFIG_64BIT
    427 /*static*/ unsigned int regmap_parse_64_be(const void *buf)
     427static unsigned int regmap_parse_64_be(const void *buf)
    428428{
    429429        return get_unaligned_be64(buf);
    430430}
    431431
    432 /*static*/ unsigned int regmap_parse_64_le(const void *buf)
     432static unsigned int regmap_parse_64_le(const void *buf)
    433433{
    434434        return get_unaligned_le64(buf);
    435435}
    436436
    437 /*static*/ void regmap_parse_64_be_inplace(void *buf)
     437static void regmap_parse_64_be_inplace(void *buf)
    438438{
    439439        u64 v =  get_unaligned_be64(buf);
     
    442442}
    443443
    444 /*static*/ void regmap_parse_64_le_inplace(void *buf)
     444static void regmap_parse_64_le_inplace(void *buf)
    445445{
    446446        u64 v = get_unaligned_le64(buf);
     
    449449}
    450450
    451 /*static*/ unsigned int regmap_parse_64_native(const void *buf)
     451static unsigned int regmap_parse_64_native(const void *buf)
    452452{
    453453        u64 v;
     
    458458#endif
    459459
    460 /*static*/ void regmap_lock_hwlock(void *__map)
     460static void regmap_lock_hwlock(void *__map)
    461461{
    462462#ifndef TARGET_OS2
     
    467467}
    468468
    469 /*static*/ void regmap_lock_hwlock_irq(void *__map)
     469static void regmap_lock_hwlock_irq(void *__map)
    470470{
    471471#ifndef TARGET_OS2
     
    476476}
    477477
    478 /*static*/ void regmap_lock_hwlock_irqsave(void *__map)
     478static void regmap_lock_hwlock_irqsave(void *__map)
    479479{
    480480#ifndef TARGET_OS2
     
    486486}
    487487
    488 /*static*/ void regmap_unlock_hwlock(void *__map)
     488static void regmap_unlock_hwlock(void *__map)
    489489{
    490490#ifndef TARGET_OS2
     
    495495}
    496496
    497 /*static*/ void regmap_unlock_hwlock_irq(void *__map)
     497static void regmap_unlock_hwlock_irq(void *__map)
    498498{
    499499#ifndef TARGET_OS2
     
    504504}
    505505
    506 /*static*/ void regmap_unlock_hwlock_irqrestore(void *__map)
     506static void regmap_unlock_hwlock_irqrestore(void *__map)
    507507{
    508508#ifndef TARGET_OS2
     
    513513}
    514514
    515 /*static*/ void regmap_lock_unlock_none(void *__map)
    516 {
    517 
    518 }
    519 
    520 /*static*/ void regmap_lock_mutex(void *__map)
     515static void regmap_lock_unlock_none(void *__map)
     516{
     517
     518}
     519
     520static void regmap_lock_mutex(void *__map)
    521521{
    522522        struct regmap *map = __map;
     
    524524}
    525525
    526 /*static*/ void regmap_unlock_mutex(void *__map)
     526static void regmap_unlock_mutex(void *__map)
    527527{
    528528        struct regmap *map = __map;
     
    530530}
    531531
    532 /*static*/ void regmap_lock_spinlock(void *__map)
     532static void regmap_lock_spinlock(void *__map)
    533533__acquires(&map->spinlock)
    534534{
     
    540540}
    541541
    542 /*static*/ void regmap_unlock_spinlock(void *__map)
     542static void regmap_unlock_spinlock(void *__map)
    543543__releases(&map->spinlock)
    544544{
     
    547547}
    548548
    549 /*static*/ void dev_get_regmap_release(struct device *dev, void *res)
     549static void dev_get_regmap_release(struct device *dev, void *res)
    550550{
    551551        /*
     
    556556}
    557557
    558 /*static*/ bool _regmap_range_add(struct regmap *map,
     558static bool _regmap_range_add(struct regmap *map,
    559559                              struct regmap_range_node *data)
    560560{
     
    581581}
    582582
    583 /*static*/ struct regmap_range_node *_regmap_range_lookup(struct regmap *map,
     583static struct regmap_range_node *_regmap_range_lookup(struct regmap *map,
    584584                                                      unsigned int reg)
    585585{
     
    601601}
    602602
    603 /*static*/ void regmap_range_exit(struct regmap *map)
     603static void regmap_range_exit(struct regmap *map)
    604604{
    605605        struct rb_node *next;
     
    617617}
    618618
    619 /*static*/ int regmap_set_name(struct regmap *map, const struct regmap_config *config)
     619static int regmap_set_name(struct regmap *map, const struct regmap_config *config)
    620620{
    621621        if (config->name) {
     
    668668EXPORT_SYMBOL_GPL(regmap_attach_dev);
    669669
    670 /*static*/ enum regmap_endian regmap_get_reg_endian(const struct regmap_bus *bus,
     670static enum regmap_endian regmap_get_reg_endian(const struct regmap_bus *bus,
    671671                                        const struct regmap_config *config)
    672672{
     
    12521252
    12531253#ifndef TARGET_OS2
    1254 /*static*/ void devm_regmap_release(struct device *dev, void *res)
     1254static void devm_regmap_release(struct device *dev, void *res)
    12551255{
    12561256        regmap_exit(*(struct regmap **)res);
     
    12841284#endif
    12851285
    1286 /*static*/ void regmap_field_init(struct regmap_field *rm_field,
     1286static void regmap_field_init(struct regmap_field *rm_field,
    12871287        struct regmap *regmap, struct reg_field reg_field)
    12881288{
     
    15621562EXPORT_SYMBOL_GPL(regmap_exit);
    15631563
    1564 /*static*/ int dev_get_regmap_match(struct device *dev, void *res, void *data)
     1564static int dev_get_regmap_match(struct device *dev, void *res, void *data)
    15651565{
    15661566        struct regmap **r = res;
     
    16131613EXPORT_SYMBOL_GPL(regmap_get_device);
    16141614
    1615 /*static*/ int _regmap_select_page(struct regmap *map, unsigned int *reg,
     1615static int _regmap_select_page(struct regmap *map, unsigned int *reg,
    16161616                               struct regmap_range_node *range,
    16171617                               unsigned int val_num)
     
    16611661}
    16621662
    1663 /*static*/ void regmap_set_work_buf_flag_mask(struct regmap *map, int max_bytes,
     1663static void regmap_set_work_buf_flag_mask(struct regmap *map, int max_bytes,
    16641664                                          unsigned long mask)
    16651665{
     
    16761676}
    16771677
    1678 /*static*/ int _regmap_raw_write_impl(struct regmap *map, unsigned int reg,
     1678static int _regmap_raw_write_impl(struct regmap *map, unsigned int reg,
    16791679                                  const void *val, size_t val_len, bool noinc)
    16801680{
     
    19031903EXPORT_SYMBOL_GPL(regmap_get_raw_write_max);
    19041904
    1905 /*static*/ int _regmap_bus_formatted_write(void *context, unsigned int reg,
     1905static int _regmap_bus_formatted_write(void *context, unsigned int reg,
    19061906                                       unsigned int val)
    19071907{
     
    19271927}
    19281928
    1929 /*static*/ int _regmap_bus_reg_write(void *context, unsigned int reg,
     1929static int _regmap_bus_reg_write(void *context, unsigned int reg,
    19301930                                 unsigned int val)
    19311931{
     
    19351935}
    19361936
    1937 /*static*/ int _regmap_bus_raw_write(void *context, unsigned int reg,
     1937static int _regmap_bus_raw_write(void *context, unsigned int reg,
    19381938                                 unsigned int val)
    19391939{
     
    19521952}
    19531953
    1954 /*static*/ inline void *_regmap_map_get_context(struct regmap *map)
     1954static inline void *_regmap_map_get_context(struct regmap *map)
    19551955{
    19561956        return (map->bus) ? map : map->bus_context;
     
    23262326 * relative. The page register has been written if that was necessary.
    23272327 */
    2328 /*static*/ int _regmap_raw_multi_reg_write(struct regmap *map,
     2328static int _regmap_raw_multi_reg_write(struct regmap *map,
    23292329                                       const struct reg_sequence *regs,
    23302330                                       size_t num_regs)
     
    23752375}
    23762376
    2377 /*static*/ unsigned int _regmap_register_page(struct regmap *map,
     2377static unsigned int _regmap_register_page(struct regmap *map,
    23782378                                          unsigned int reg,
    23792379                                          struct regmap_range_node *range)
     
    23842384}
    23852385
    2386 /*static*/ int _regmap_range_multi_paged_reg_write(struct regmap *map,
     2386static int _regmap_range_multi_paged_reg_write(struct regmap *map,
    23872387                                               struct reg_sequence *regs,
    23882388                                               size_t num_regs)
     
    24672467}
    24682468
    2469 /*static*/ int _regmap_multi_reg_write(struct regmap *map,
     2469static int _regmap_multi_reg_write(struct regmap *map,
    24702470                                   const struct reg_sequence *regs,
    24712471                                   size_t num_regs)
     
    26682668EXPORT_SYMBOL_GPL(regmap_raw_write_async);
    26692669
    2670 /*static*/ int _regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
     2670static int _regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
    26712671                            unsigned int val_len, bool noinc)
    26722672{
     
    26982698}
    26992699
    2700 /*static*/ int _regmap_bus_reg_read(void *context, unsigned int reg,
     2700static int _regmap_bus_reg_read(void *context, unsigned int reg,
    27012701                                unsigned int *val)
    27022702{
     
    27062706}
    27072707
    2708 /*static*/ int _regmap_bus_read(void *context, unsigned int reg,
     2708static int _regmap_bus_read(void *context, unsigned int reg,
    27092709                            unsigned int *val)
    27102710{
     
    27242724}
    27252725
    2726 /*static*/ int _regmap_read(struct regmap *map, unsigned int reg,
     2726static int _regmap_read(struct regmap *map, unsigned int reg,
    27272727                        unsigned int *val)
    27282728{
     
    30653065EXPORT_SYMBOL_GPL(regmap_bulk_read);
    30663066
    3067 /*static*/ int _regmap_update_bits(struct regmap *map, unsigned int reg,
     3067static int _regmap_update_bits(struct regmap *map, unsigned int reg,
    30683068                               unsigned int mask, unsigned int val,
    30693069                               bool *change, bool force_write)
     
    31823182
    31833183#ifndef TARGET_OS2
    3184 /*static*/ int regmap_async_is_done(struct regmap *map)
     3184static int regmap_async_is_done(struct regmap *map)
    31853185{
    31863186        unsigned long flags;
     
    33463346EXPORT_SYMBOL_GPL(regmap_parse_val);
    33473347
    3348 /*static*/ int __init regmap_initcall(void)
     3348static int __init regmap_initcall(void)
    33493349{
    33503350        regmap_debugfs_initcall();
Note: See TracChangeset for help on using the changeset viewer.