Commit 938cae7a authored by Leslie Klein's avatar Leslie Klein Committed by Greg Kroah-Hartman

Staging: comedi: comedi_buf: Replace 'unsigned' with 'unsigned int'

Fix checkpatch warning:
Prefer 'unsigned int' to bare use of 'unsigned'
in file comedi_buf.c
Signed-off-by: default avatarLeslie Klein <lesliebklein@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f6b1160e
...@@ -80,14 +80,14 @@ static void __comedi_buf_free(struct comedi_device *dev, ...@@ -80,14 +80,14 @@ static void __comedi_buf_free(struct comedi_device *dev,
static void __comedi_buf_alloc(struct comedi_device *dev, static void __comedi_buf_alloc(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
unsigned n_pages) unsigned int n_pages)
{ {
struct comedi_async *async = s->async; struct comedi_async *async = s->async;
struct page **pages = NULL; struct page **pages = NULL;
struct comedi_buf_map *bm; struct comedi_buf_map *bm;
struct comedi_buf_page *buf; struct comedi_buf_page *buf;
unsigned long flags; unsigned long flags;
unsigned i; unsigned int i;
if (!IS_ENABLED(CONFIG_HAS_DMA) && s->async_dma_dir != DMA_NONE) { if (!IS_ENABLED(CONFIG_HAS_DMA) && s->async_dma_dir != DMA_NONE) {
dev_err(dev->class_dev, dev_err(dev->class_dev,
...@@ -208,7 +208,7 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s, ...@@ -208,7 +208,7 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
/* allocate new buffer */ /* allocate new buffer */
if (new_size) { if (new_size) {
unsigned n_pages = new_size >> PAGE_SHIFT; unsigned int n_pages = new_size >> PAGE_SHIFT;
__comedi_buf_alloc(dev, s, n_pages); __comedi_buf_alloc(dev, s, n_pages);
...@@ -302,7 +302,7 @@ static unsigned int comedi_buf_munge(struct comedi_subdevice *s, ...@@ -302,7 +302,7 @@ static unsigned int comedi_buf_munge(struct comedi_subdevice *s,
{ {
struct comedi_async *async = s->async; struct comedi_async *async = s->async;
unsigned int count = 0; unsigned int count = 0;
const unsigned num_sample_bytes = comedi_bytes_per_sample(s); const unsigned int num_sample_bytes = comedi_bytes_per_sample(s);
if (!s->munge || (async->cmd.flags & CMDF_RAWDATA)) { if (!s->munge || (async->cmd.flags & CMDF_RAWDATA)) {
async->munge_count += num_bytes; async->munge_count += num_bytes;
...@@ -395,7 +395,7 @@ EXPORT_SYMBOL_GPL(comedi_buf_write_free); ...@@ -395,7 +395,7 @@ EXPORT_SYMBOL_GPL(comedi_buf_write_free);
unsigned int comedi_buf_read_n_available(struct comedi_subdevice *s) unsigned int comedi_buf_read_n_available(struct comedi_subdevice *s)
{ {
struct comedi_async *async = s->async; struct comedi_async *async = s->async;
unsigned num_bytes; unsigned int num_bytes;
if (!async) if (!async)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment