aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna, Suman <s-anna@ti.com>2016-08-12 19:42:19 -0400
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-08-13 00:27:48 -0400
commitf145928d496df35fdca86d8af77fe9610fd0055f (patch)
tree55688e8229488c271638e8d1c8f779ea3594e9ed
parent899585ad3964be599bc643f5119193c815e3d1e4 (diff)
remoteproc: fix bare unsigned type usage
While there is nothing wrong with defining an unsigned integer variable or argument using the bare unsigned type, it is better to use the checkpatch preferred 'unsigned int' type. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
-rw-r--r--drivers/remoteproc/remoteproc_virtio.c12
-rw-r--r--include/linux/remoteproc.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c
index cc91556313e1..62cffe92e40d 100644
--- a/drivers/remoteproc/remoteproc_virtio.c
+++ b/drivers/remoteproc/remoteproc_virtio.c
@@ -69,7 +69,7 @@ irqreturn_t rproc_vq_interrupt(struct rproc *rproc, int notifyid)
69EXPORT_SYMBOL(rproc_vq_interrupt); 69EXPORT_SYMBOL(rproc_vq_interrupt);
70 70
71static struct virtqueue *rp_find_vq(struct virtio_device *vdev, 71static struct virtqueue *rp_find_vq(struct virtio_device *vdev,
72 unsigned id, 72 unsigned int id,
73 void (*callback)(struct virtqueue *vq), 73 void (*callback)(struct virtqueue *vq),
74 const char *name) 74 const char *name)
75{ 75{
@@ -144,7 +144,7 @@ static void rproc_virtio_del_vqs(struct virtio_device *vdev)
144 __rproc_virtio_del_vqs(vdev); 144 __rproc_virtio_del_vqs(vdev);
145} 145}
146 146
147static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, 147static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
148 struct virtqueue *vqs[], 148 struct virtqueue *vqs[],
149 vq_callback_t *callbacks[], 149 vq_callback_t *callbacks[],
150 const char * const names[]) 150 const char * const names[])
@@ -239,8 +239,8 @@ static int rproc_virtio_finalize_features(struct virtio_device *vdev)
239 return 0; 239 return 0;
240} 240}
241 241
242static void rproc_virtio_get(struct virtio_device *vdev, unsigned offset, 242static void rproc_virtio_get(struct virtio_device *vdev, unsigned int offset,
243 void *buf, unsigned len) 243 void *buf, unsigned int len)
244{ 244{
245 struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); 245 struct rproc_vdev *rvdev = vdev_to_rvdev(vdev);
246 struct fw_rsc_vdev *rsc; 246 struct fw_rsc_vdev *rsc;
@@ -257,8 +257,8 @@ static void rproc_virtio_get(struct virtio_device *vdev, unsigned offset,
257 memcpy(buf, cfg + offset, len); 257 memcpy(buf, cfg + offset, len);
258} 258}
259 259
260static void rproc_virtio_set(struct virtio_device *vdev, unsigned offset, 260static void rproc_virtio_set(struct virtio_device *vdev, unsigned int offset,
261 const void *buf, unsigned len) 261 const void *buf, unsigned int len)
262{ 262{
263 struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); 263 struct rproc_vdev *rvdev = vdev_to_rvdev(vdev);
264 struct fw_rsc_vdev *rsc; 264 struct fw_rsc_vdev *rsc;
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h
index 1c457a8dd5a6..f575f1ba42a1 100644
--- a/include/linux/remoteproc.h
+++ b/include/linux/remoteproc.h
@@ -435,7 +435,7 @@ struct rproc {
435 struct idr notifyids; 435 struct idr notifyids;
436 int index; 436 int index;
437 struct work_struct crash_handler; 437 struct work_struct crash_handler;
438 unsigned crash_cnt; 438 unsigned int crash_cnt;
439 struct completion crash_comp; 439 struct completion crash_comp;
440 bool recovery_disabled; 440 bool recovery_disabled;
441 int max_notifyid; 441 int max_notifyid;