diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-02-21 20:41:11 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-02-21 20:41:11 +0000 |
commit | 8e1f1df0808acb885927a69c82d1af33e25060ad (patch) | |
tree | b4c7c5f55a2681dc99feaf813fae3d32fabd502e /sys/dev/sab/sab.c | |
parent | b0b03348789e3dd9b271ed132b29adb8045293a7 (diff) | |
download | src-8e1f1df0808acb885927a69c82d1af33e25060ad.tar.gz src-8e1f1df0808acb885927a69c82d1af33e25060ad.zip |
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.
Notes
Notes:
svn path=/head/; revision=126078
Diffstat (limited to 'sys/dev/sab/sab.c')
-rw-r--r-- | sys/dev/sab/sab.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/sab/sab.c b/sys/dev/sab/sab.c index aea2e16a0d56..36b6c1f9c53f 100644 --- a/sys/dev/sab/sab.c +++ b/sys/dev/sab/sab.c @@ -163,13 +163,9 @@ static int sabttyparam(struct tty *tp, struct termios *t); static struct cdevsw sabtty_cdevsw = { .d_open = sabttyopen, .d_close = sabttyclose, - .d_read = ttyread, - .d_write = ttywrite, .d_ioctl = sabttyioctl, - .d_poll = ttypoll, .d_name = "sabtty", .d_flags = D_TTY, - .d_kqfilter = ttykqfilter, }; static device_method_t sab_methods[] = { |