]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: comedi: hwdrv_apci1500: use dev->class_dev in calls to dev_warn()
authorChase Southwood <chase.southwood@gmail.com>
Wed, 3 Sep 2014 23:58:49 +0000 (18:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:52:14 +0000 (13:52 -0700)
commit948ffcfd74ef8dece6621200c6862a781e77753e
tree5a58c56707b6c6777c2f7cddd3bc8f22dd6785ac
parent889277b93b3d94e8166554eb06c6ae0543a3a3ef
staging: comedi: hwdrv_apci1500: use dev->class_dev in calls to dev_warn()

git-grep reveals that hwdrv_apci1500.c is the only file in comedi that uses
dev->hw_dev in calls to dev_{err,warn}().  The rest of the drivers pass
dev->class_dev to these macros instead.  Switch the dev_warn() calls in
this driver to use dev->class_dev as well, for consistency.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi-data/hwdrv_apci1500.c