Commit f145928d authored by Anna, Suman's avatar Anna, Suman Committed by Bjorn Andersson

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: default avatarSuman Anna <s-anna@ti.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 899585ad
...@@ -69,7 +69,7 @@ irqreturn_t rproc_vq_interrupt(struct rproc *rproc, int notifyid) ...@@ -69,7 +69,7 @@ irqreturn_t rproc_vq_interrupt(struct rproc *rproc, int notifyid)
EXPORT_SYMBOL(rproc_vq_interrupt); EXPORT_SYMBOL(rproc_vq_interrupt);
static struct virtqueue *rp_find_vq(struct virtio_device *vdev, static struct virtqueue *rp_find_vq(struct virtio_device *vdev,
unsigned id, unsigned int id,
void (*callback)(struct virtqueue *vq), void (*callback)(struct virtqueue *vq),
const char *name) const char *name)
{ {
...@@ -144,7 +144,7 @@ static void rproc_virtio_del_vqs(struct virtio_device *vdev) ...@@ -144,7 +144,7 @@ static void rproc_virtio_del_vqs(struct virtio_device *vdev)
__rproc_virtio_del_vqs(vdev); __rproc_virtio_del_vqs(vdev);
} }
static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
struct virtqueue *vqs[], struct virtqueue *vqs[],
vq_callback_t *callbacks[], vq_callback_t *callbacks[],
const char * const names[]) const char * const names[])
...@@ -239,8 +239,8 @@ static int rproc_virtio_finalize_features(struct virtio_device *vdev) ...@@ -239,8 +239,8 @@ static int rproc_virtio_finalize_features(struct virtio_device *vdev)
return 0; return 0;
} }
static void rproc_virtio_get(struct virtio_device *vdev, unsigned offset, static void rproc_virtio_get(struct virtio_device *vdev, unsigned int offset,
void *buf, unsigned len) void *buf, unsigned int len)
{ {
struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); struct rproc_vdev *rvdev = vdev_to_rvdev(vdev);
struct fw_rsc_vdev *rsc; struct fw_rsc_vdev *rsc;
...@@ -257,8 +257,8 @@ static void rproc_virtio_get(struct virtio_device *vdev, unsigned offset, ...@@ -257,8 +257,8 @@ static void rproc_virtio_get(struct virtio_device *vdev, unsigned offset,
memcpy(buf, cfg + offset, len); memcpy(buf, cfg + offset, len);
} }
static void rproc_virtio_set(struct virtio_device *vdev, unsigned offset, static void rproc_virtio_set(struct virtio_device *vdev, unsigned int offset,
const void *buf, unsigned len) const void *buf, unsigned int len)
{ {
struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); struct rproc_vdev *rvdev = vdev_to_rvdev(vdev);
struct fw_rsc_vdev *rsc; struct fw_rsc_vdev *rsc;
......
...@@ -435,7 +435,7 @@ struct rproc { ...@@ -435,7 +435,7 @@ struct rproc {
struct idr notifyids; struct idr notifyids;
int index; int index;
struct work_struct crash_handler; struct work_struct crash_handler;
unsigned crash_cnt; unsigned int crash_cnt;
struct completion crash_comp; struct completion crash_comp;
bool recovery_disabled; bool recovery_disabled;
int max_notifyid; int max_notifyid;
......
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