devfs: Drop dev_lseek_default()
Only the following cdevs do not declare an .lseek() operation:

  - Console devices in common/console.c
  - Firmware framework in common/firmware.c
  - JTAG driver in drivers/misc/jtag.c
  - UBI in drivers/mtd/ubi/barebox.c

Of those four, first two are marked DEVFS_IS_CHARACTER_DEV and
implement only .write() operation and the last two don't implement
anything but .ioctl(). While there's probably no meaningful way to use
lseek() against any of those devices, there doesn't seem to be any
harm in allowing it either.

Change devfs_lseek() to ignore absense of .lseek() callback and drop
dev_lseek_default() and all references to it in the codebase.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 0c2431b commit 5c9408572406c8718a35931ecf74a5cf38632914
@Andrey Smirnov Andrey Smirnov authored on 29 Jan 2019
Sascha Hauer committed on 29 Jan 2019
Showing 28 changed files
View
arch/arm/mach-mxs/ocotp.c
View
arch/sandbox/board/hostfile.c
View
commands/stddev.c
View
common/block.c
View
drivers/base/regmap/regmap.c
View
drivers/eeprom/at24.c
View
drivers/eeprom/at25.c
View
drivers/hw_random/core.c
View
drivers/mfd/act8846.c
View
drivers/mfd/lp3972.c
View
drivers/mfd/mc34704.c
View
drivers/mfd/mc9sdz60.c
View
drivers/mfd/stmpe-i2c.c
View
drivers/mfd/twl-core.c
View
drivers/misc/sram.c
View
drivers/mtd/core.c
View
drivers/mtd/mtdoob.c
View
drivers/mtd/mtdraw.c
View
drivers/net/e1000/eeprom.c
View
drivers/net/ksz8864rmn.c
View
drivers/net/phy/mdio_bus.c
View
drivers/nvmem/core.c
View
drivers/video/fb.c
View
drivers/w1/slaves/w1_ds2431.c
View
drivers/w1/slaves/w1_ds2433.c
View
fs/devfs-core.c
View
fs/devfs.c
View
include/driver.h