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> |
---|
|
arch/arm/mach-mxs/ocotp.c |
---|
arch/sandbox/board/hostfile.c |
---|
commands/stddev.c |
---|
common/block.c |
---|
drivers/base/regmap/regmap.c |
---|
drivers/eeprom/at24.c |
---|
drivers/eeprom/at25.c |
---|
drivers/hw_random/core.c |
---|
drivers/mfd/act8846.c |
---|
drivers/mfd/lp3972.c |
---|
drivers/mfd/mc34704.c |
---|
drivers/mfd/mc9sdz60.c |
---|
drivers/mfd/stmpe-i2c.c |
---|
drivers/mfd/twl-core.c |
---|
drivers/misc/sram.c |
---|
drivers/mtd/core.c |
---|
drivers/mtd/mtdoob.c |
---|
drivers/mtd/mtdraw.c |
---|
drivers/net/e1000/eeprom.c |
---|
drivers/net/ksz8864rmn.c |
---|
drivers/net/phy/mdio_bus.c |
---|
drivers/nvmem/core.c |
---|
drivers/video/fb.c |
---|
drivers/w1/slaves/w1_ds2431.c |
---|
drivers/w1/slaves/w1_ds2433.c |
---|
fs/devfs-core.c |
---|
fs/devfs.c |
---|
include/driver.h |
---|