mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-01 06:42:31 +00:00
spi-nor: intel-spi: Remove unused preopcodes field
This field is not used in the driver anymore so remove it. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
This commit is contained in:
parent
2167d6d7a9
commit
a6e4836d69
@ -138,7 +138,6 @@
|
|||||||
* @erase_64k: 64k erase supported
|
* @erase_64k: 64k erase supported
|
||||||
* @opcodes: Opcodes which are supported. This are programmed by BIOS
|
* @opcodes: Opcodes which are supported. This are programmed by BIOS
|
||||||
* before it locks down the controller.
|
* before it locks down the controller.
|
||||||
* @preopcodes: Preopcodes which are supported.
|
|
||||||
*/
|
*/
|
||||||
struct intel_spi {
|
struct intel_spi {
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
@ -155,7 +154,6 @@ struct intel_spi {
|
|||||||
bool swseq_erase;
|
bool swseq_erase;
|
||||||
bool erase_64k;
|
bool erase_64k;
|
||||||
u8 opcodes[8];
|
u8 opcodes[8];
|
||||||
u8 preopcodes[2];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool writeable;
|
static bool writeable;
|
||||||
@ -400,10 +398,6 @@ static int intel_spi_init(struct intel_spi *ispi)
|
|||||||
ispi->opcodes[i] = opmenu0 >> i * 8;
|
ispi->opcodes[i] = opmenu0 >> i * 8;
|
||||||
ispi->opcodes[i + 4] = opmenu1 >> i * 8;
|
ispi->opcodes[i + 4] = opmenu1 >> i * 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
val = readl(ispi->sregs + PREOP_OPTYPE);
|
|
||||||
ispi->preopcodes[0] = val;
|
|
||||||
ispi->preopcodes[1] = val >> 8;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user