summaryrefslogtreecommitdiff
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-06-01 12:03:24 +0200
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-06-18 11:45:55 +0200
commit00a5762b45250ebde8920d3cf68ca3974a0253b2 (patch)
tree60f32b48cf2872e3283cd49e10e3e8b4c3741278 /drivers/mtd/devices
parentce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff)
mtd: m25p80: Remove unneeded m25p->command field
The ->command field is no longer used, remove it. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Acked-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/m25p80.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index e84563d2067f..3fc5ef4ebb16 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -28,11 +28,9 @@
#include <linux/spi/flash.h>
#include <linux/mtd/spi-nor.h>
-#define MAX_CMD_SIZE 6
struct m25p {
struct spi_mem *spimem;
struct spi_nor spi_nor;
- u8 command[MAX_CMD_SIZE];
};
static int m25p80_read_reg(struct spi_nor *nor, u8 code, u8 *val, int len)