]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
psm: Swap the unit member in the softc for a device_t.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 21 Apr 2022 20:52:48 +0000 (13:52 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 21 Apr 2022 20:52:48 +0000 (13:52 -0700)
commita6c09f20e8e00bec7d9eb088b4f32dd38bf7f490
tree54297aed3e4c726ce614804a1c246b03c1c8c0e8
parent4b337ada34bc795e6d992ee10c879afe45f04cdb
psm: Swap the unit member in the softc for a device_t.

This entails various changes to make this driver more "modern"
(new-bus vs pre-new-bus) using device_log() and device_printf() rather
than psm%d.  It also fixes the device_busy/unbusy calls to use sc->dev
directly rather than looking the device_t up via the devclass and
unit.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D35006
sys/dev/atkbdc/psm.c