diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-10-31 12:04:28 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-03 16:34:17 -0800 |
commit | c39e050d21d107d26183be0f22b89eccccdbe61c (patch) | |
tree | 968e6e76a074f75380f7e28e7f5306f42740e1ac /drivers/staging/comedi/comedidev.h | |
parent | 272fe8f51fd8b8cd1637c8d2ca868cbff725405e (diff) | |
download | op-kernel-dev-c39e050d21d107d26183be0f22b89eccccdbe61c.zip op-kernel-dev-c39e050d21d107d26183be0f22b89eccccdbe61c.tar.gz |
staging: comedi: remove use of 'bytes_per_sample()'
This inline helper function has been replaced with comedi_bytes_per_sample().
The same commit (bf33eb4b4f57) introduced a couple other related helper
functions a manipulate the sample size.
Use the new helper functions to remove the use of 'bytes_per_sample()' and
remove it.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedidev.h')
-rw-r--r-- | drivers/staging/comedi/comedidev.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h index d18f702..90af11a 100644 --- a/drivers/staging/comedi/comedidev.h +++ b/drivers/staging/comedi/comedidev.h @@ -427,12 +427,6 @@ static inline unsigned int comedi_bytes_per_sample(struct comedi_subdevice *s) return s->subdev_flags & SDF_LSAMPL ? sizeof(int) : sizeof(short); } -/* to be removed */ -static inline unsigned int bytes_per_sample(struct comedi_subdevice *s) -{ - return comedi_bytes_per_sample(s); -} - /** * comedi_sample_shift - determine log2 of subdevice sample size * @s: comedi_subdevice struct |