summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShiva Kerdel <shiva@exdev.nl>2016-11-15 09:30:03 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-15 11:01:54 +0100
commitcbafdc9816b4d59c678c08b7dbe4c1bce4a73553 (patch)
tree9fe1cde9890d72adfaafb0476ccbdd28543e990c
parent7cb15d044867c83b27ed434fe7002797846002c0 (diff)
downloadop-kernel-dev-cbafdc9816b4d59c678c08b7dbe4c1bce4a73553.zip
op-kernel-dev-cbafdc9816b4d59c678c08b7dbe4c1bce4a73553.tar.gz
Staging: fsl-mc: include: mc: Kernel type 'int' preferred over 's16'
After following a discussion about the used integer types Dan Carpenter pointed out that 'int' types should be used over the current change to 's16'. The reason for this is to have an upper bound instead of overflowing the 's16' so we could still remove devices. Signed-off-by: Shiva Kerdel <shiva@exdev.nl> Suggested-by: Stuart Yoder <stuart.yoder@nxp.com> Suggested-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/fsl-mc/include/mc-bus.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fsl-mc/include/mc-bus.h b/drivers/staging/fsl-mc/include/mc-bus.h
index c7cad87..42700de 100644
--- a/drivers/staging/fsl-mc/include/mc-bus.h
+++ b/drivers/staging/fsl-mc/include/mc-bus.h
@@ -42,8 +42,8 @@ struct msi_domain_info;
*/
struct fsl_mc_resource_pool {
enum fsl_mc_pool_type type;
- s16 max_count;
- s16 free_count;
+ int max_count;
+ int free_count;
struct mutex mutex; /* serializes access to free_list */
struct list_head free_list;
struct fsl_mc_bus *mc_bus;
OpenPOWER on IntegriCloud