Skip to content

Commit dc2d885

Browse files
Boris Brezillonmiquelraynal
authored andcommitted
mtd: rawnand: plat_nand: Kill pdata->ctrl.{hwcontrol, read_byte}()
None of the board files are overloading those hooks, so let's drop them from struct platform_nand_ctrl. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent f0f0183 commit dc2d885

4 files changed

Lines changed: 0 additions & 8 deletions

File tree

‎arch/arm/mach-pxa/balloon3.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,6 @@ struct platform_nand_data balloon3_nand_pdata = {
688688
.chip_delay = 50,
689689
},
690690
.ctrl = {
691-
.hwcontrol = 0,
692691
.dev_ready = balloon3_nand_dev_ready,
693692
.select_chip = balloon3_nand_select_chip,
694693
.cmd_ctrl = balloon3_nand_cmd_ctl,

‎arch/arm/mach-pxa/em-x270.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ struct platform_nand_data em_x270_nand_platdata = {
346346
.chip_delay = 20,
347347
},
348348
.ctrl = {
349-
.hwcontrol = 0,
350349
.dev_ready = em_x270_nand_device_ready,
351350
.select_chip = 0,
352351
.cmd_ctrl = em_x270_nand_cmd_ctl,

‎drivers/mtd/nand/raw/plat_nand.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ static int plat_nand_probe(struct platform_device *pdev)
6767
data->chip.select_chip = pdata->ctrl.select_chip;
6868
data->chip.write_buf = pdata->ctrl.write_buf;
6969
data->chip.read_buf = pdata->ctrl.read_buf;
70-
data->chip.read_byte = pdata->ctrl.read_byte;
7170
data->chip.chip_delay = pdata->chip.chip_delay;
7271
data->chip.options |= pdata->chip.options;
7372
data->chip.bbt_options |= pdata->chip.bbt_options;
7473

75-
data->chip.ecc.hwctl = pdata->ctrl.hwcontrol;
7674
data->chip.ecc.mode = NAND_ECC_SOFT;
7775
data->chip.ecc.algo = NAND_ECC_HAMMING;
7876

‎include/linux/mtd/rawnand.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,28 +1572,24 @@ struct platform_device;
15721572
* struct platform_nand_ctrl - controller level device structure
15731573
* @probe: platform specific function to probe/setup hardware
15741574
* @remove: platform specific function to remove/teardown hardware
1575-
* @hwcontrol: platform specific hardware control structure
15761575
* @dev_ready: platform specific function to read ready/busy pin
15771576
* @select_chip: platform specific chip select function
15781577
* @cmd_ctrl: platform specific function for controlling
15791578
* ALE/CLE/nCE. Also used to write command and address
15801579
* @write_buf: platform specific function for write buffer
15811580
* @read_buf: platform specific function for read buffer
1582-
* @read_byte: platform specific function to read one byte from chip
15831581
* @priv: private data to transport driver specific settings
15841582
*
15851583
* All fields are optional and depend on the hardware driver requirements
15861584
*/
15871585
struct platform_nand_ctrl {
15881586
int (*probe)(struct platform_device *pdev);
15891587
void (*remove)(struct platform_device *pdev);
1590-
void (*hwcontrol)(struct mtd_info *mtd, int cmd);
15911588
int (*dev_ready)(struct mtd_info *mtd);
15921589
void (*select_chip)(struct mtd_info *mtd, int chip);
15931590
void (*cmd_ctrl)(struct mtd_info *mtd, int dat, unsigned int ctrl);
15941591
void (*write_buf)(struct mtd_info *mtd, const uint8_t *buf, int len);
15951592
void (*read_buf)(struct mtd_info *mtd, uint8_t *buf, int len);
1596-
unsigned char (*read_byte)(struct mtd_info *mtd);
15971593
void *priv;
15981594
};
15991595

0 commit comments

Comments
 (0)