diff options
author | Xiubo Li <lixiubo@cmss.chinamobile.com> | 2015-12-09 00:09:06 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-09 15:39:22 -0500 |
commit | 2fd6902ed7587c302611906b5151f6a7efeb2c63 (patch) | |
tree | feaac49bcd1ee0ce787f0b986358e10565c78317 | |
parent | 19c04788f0e0ef778df39cdeaf8e9889d3020894 (diff) |
regmap: cache: To suppress the noise of checkpatch
There will be some warning like the following when checking new
patches near this code:
"WARNING: Missing a blank line after declarations"
This patch will suppress this warning.
Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/base/regmap/regcache.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 4c07802986b2..3cb8c59a5ff6 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c | |||
@@ -535,16 +535,19 @@ bool regcache_set_val(struct regmap *map, void *base, unsigned int idx, | |||
535 | switch (map->cache_word_size) { | 535 | switch (map->cache_word_size) { |
536 | case 1: { | 536 | case 1: { |
537 | u8 *cache = base; | 537 | u8 *cache = base; |
538 | |||
538 | cache[idx] = val; | 539 | cache[idx] = val; |
539 | break; | 540 | break; |
540 | } | 541 | } |
541 | case 2: { | 542 | case 2: { |
542 | u16 *cache = base; | 543 | u16 *cache = base; |
544 | |||
543 | cache[idx] = val; | 545 | cache[idx] = val; |
544 | break; | 546 | break; |
545 | } | 547 | } |
546 | case 4: { | 548 | case 4: { |
547 | u32 *cache = base; | 549 | u32 *cache = base; |
550 | |||
548 | cache[idx] = val; | 551 | cache[idx] = val; |
549 | break; | 552 | break; |
550 | } | 553 | } |
@@ -568,14 +571,17 @@ unsigned int regcache_get_val(struct regmap *map, const void *base, | |||
568 | switch (map->cache_word_size) { | 571 | switch (map->cache_word_size) { |
569 | case 1: { | 572 | case 1: { |
570 | const u8 *cache = base; | 573 | const u8 *cache = base; |
574 | |||
571 | return cache[idx]; | 575 | return cache[idx]; |
572 | } | 576 | } |
573 | case 2: { | 577 | case 2: { |
574 | const u16 *cache = base; | 578 | const u16 *cache = base; |
579 | |||
575 | return cache[idx]; | 580 | return cache[idx]; |
576 | } | 581 | } |
577 | case 4: { | 582 | case 4: { |
578 | const u32 *cache = base; | 583 | const u32 *cache = base; |
584 | |||
579 | return cache[idx]; | 585 | return cache[idx]; |
580 | } | 586 | } |
581 | default: | 587 | default: |