From fcf7e634fb12f16e5d5a0b3ee3cfafda001a303c Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 21 Feb 2004 20:41:11 +0000 Subject: Device megapatch 3/6: Add missing D_TTY flags to various drivers. Complete asserts that dev_t's passed to ttyread(), ttywrite(), ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty pointer. Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default cdevsw methods for D_TTY drivers and remove the explicit initializations in various drivers cdevsw structures. --- sys/dev/rp/rp.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/dev/rp') diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c index 98ae4a7..1088de2 100644 --- a/sys/dev/rp/rp.c +++ b/sys/dev/rp/rp.c @@ -574,10 +574,8 @@ static d_ioctl_t rpioctl; struct cdevsw rp_cdevsw = { .d_open = rpopen, .d_close = rpclose, - .d_read = ttyread, .d_write = rpwrite, .d_ioctl = rpioctl, - .d_poll = ttypoll, .d_name = "rp", .d_flags = D_TTY, }; -- cgit v1.1