Commit cbafdc98 authored by Shiva Kerdel's avatar Shiva Kerdel Committed by Greg Kroah-Hartman

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: default avatarShiva Kerdel <shiva@exdev.nl>
Suggested-by: default avatarStuart Yoder <stuart.yoder@nxp.com>
Suggested-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7cb15d04
...@@ -42,8 +42,8 @@ struct msi_domain_info; ...@@ -42,8 +42,8 @@ struct msi_domain_info;
*/ */
struct fsl_mc_resource_pool { struct fsl_mc_resource_pool {
enum fsl_mc_pool_type type; enum fsl_mc_pool_type type;
s16 max_count; int max_count;
s16 free_count; int free_count;
struct mutex mutex; /* serializes access to free_list */ struct mutex mutex; /* serializes access to free_list */
struct list_head free_list; struct list_head free_list;
struct fsl_mc_bus *mc_bus; struct fsl_mc_bus *mc_bus;
......
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