From: Shiva Kerdel Date: Tue, 15 Nov 2016 08:30:03 +0000 (+0100) Subject: Staging: fsl-mc: include: mc: Kernel type 'int' preferred over 's16' X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cbafdc9816b4d59c678c08b7dbe4c1bce4a73553;p=linux-beck.git 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 Suggested-by: Stuart Yoder Suggested-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fsl-mc/include/mc-bus.h b/drivers/staging/fsl-mc/include/mc-bus.h index c7cad879bb30..42700de94d59 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;