HomeFreeBSD

smapi: Store softc pointer in si_drv1 of cdev.

Description

smapi: Store softc pointer in si_drv1 of cdev.

Rather than fetching the softc using the device's unit number as an
index into the devclass.

Differential Revision: https://reviews.freebsd.org/D35063

(cherry picked from commit d4f988e1886fee0c89443b6937bf47b6439f80b0)

Details

Provenance
jhbAuthored on May 5 2022, 11:35 PM
Differential Revision
D35063: smapi: Store softc pointer in si_drv1 of cdev.
Parents
rG7fe4c7b59e03: acpi_toshiba: Use device_get_softc in attach.
Branches
Unknown
Tags
Unknown