[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250129152925.1804071-1-andriy.shevchenko@linux.intel.com>
Date: Wed, 29 Jan 2025 17:29:25 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Chris Packham <chris.packham@...iedtelesis.co.nz>,
linux-spi@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Mark Brown <broonie@...nel.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: [PATCH v1 1/1] spi: realtek-rtl-snand: Drop unneeded assignment for cache_type
REGCACHE_NONE is the default type of the cache when not provided.
Drop unneeded explicit assignment to it.
Note, it's defined to 0, and if ever be redefined, it will break
literally a lot of the drivers, so it very unlikely to happen.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
drivers/spi/spi-realtek-rtl-snand.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/spi/spi-realtek-rtl-snand.c b/drivers/spi/spi-realtek-rtl-snand.c
index cd0484041147..741cf2af3e91 100644
--- a/drivers/spi/spi-realtek-rtl-snand.c
+++ b/drivers/spi/spi-realtek-rtl-snand.c
@@ -364,7 +364,6 @@ static int rtl_snand_probe(struct platform_device *pdev)
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
- .cache_type = REGCACHE_NONE,
};
int irq, ret;
--
2.43.0.rc1.1336.g36b5255a03ac
Powered by blists - more mailing lists