]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: fsl-mc: include: mc: Kernel type 'int' preferred over 's16'
authorShiva Kerdel <shiva@exdev.nl>
Tue, 15 Nov 2016 08:30:03 +0000 (09:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Nov 2016 10:01:54 +0000 (11:01 +0100)
commitc56a04bd2c7ef433125b8c9a5b493e761a82a68f
tree9fe1cde9890d72adfaafb0476ccbdd28543e990c
parentdca0c48c1739b2810321fdf66a3d186488e50498
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>
drivers/staging/fsl-mc/include/mc-bus.h