linux/drivers/fsi
Christophe JAILLET 08ab091583 fsi: occ: remove usage of the deprecated ida_simple_xx() API
Patch series "Remove usage of the deprecated ida_simple_xx() API".

The series removes the *last* usages of the deprecated ida_simple_xx() API.


This patch (of 3):

ida_alloc() and ida_free() should be preferred to the deprecated
ida_simple_get() and ida_simple_remove().

Note that the upper limit of ida_simple_get() is exclusive, but the one of
ida_alloc_range() is inclusive.  So, this upper limit, INT_MAX, should
have been changed to INT_MAX-1.

But, it is likely that the INT_MAX 'idx' is valid that the max value passed
to ida_simple_get() should have been 0.

So, allow this INT_MAX 'idx' value now.

Link: https://lkml.kernel.org/r/cover.1717855701.git.christophe.jaillet@wanadoo.fr
Link: https://lkml.kernel.org/r/8e28b0c45fe8f28ca4475fe0027f8099c41259f0.1717855701.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Cc: Alistar Popple <alistair@popple.id.au>
Cc: Christian Gromm <christian.gromm@microchip.com>
Cc: Jeremy Kerr <jk@ozlabs.org>
Cc: Joel Stanley <joel@jms.id.au>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Parthiban Veerasooran <Parthiban.Veerasooran@microchip.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-06-24 22:25:08 -07:00
..
cf-fsi-fw.h fsi: cf-fsi-fw: Use the correct style for SPDX License Identifier 2019-06-19 19:35:51 +02:00
fsi-core.c fsi: Lock mutex for master device registration 2023-08-11 13:32:14 +09:30
fsi-master-aspeed.c fsi: aspeed: Reset master errors after CFAM reset 2023-08-09 15:43:28 +09:30
fsi-master-ast-cf.c fsi: fix some spelling mistakes in comment 2023-08-11 13:32:15 +09:30
fsi-master-gpio.c fsi: Move fsi_slave structure definition to header 2023-08-09 15:41:59 +09:30
fsi-master-hub.c fsi: Move fsi_slave structure definition to header 2023-08-09 15:41:59 +09:30
fsi-master-i2cr.c fsi: i2cr: Switch to use struct i2c_driver's .probe() 2023-08-22 15:51:33 +02:00
fsi-master-i2cr.h fsi: Add IBM I2C Responder virtual FSI master 2023-08-11 13:32:14 +09:30
fsi-master.h fsi: Move fsi_slave structure definition to header 2023-08-09 15:41:59 +09:30
fsi-occ.c fsi: occ: remove usage of the deprecated ida_simple_xx() API 2024-06-24 22:25:08 -07:00
fsi-sbefifo.c fsi: fix some spelling mistakes in comment 2023-08-11 13:32:15 +09:30
fsi-scom.c fsi: Use of_match_table for bus matching if specified 2023-08-09 15:43:27 +09:30
fsi-slave.h fsi: Move fsi_slave structure definition to header 2023-08-09 15:41:59 +09:30
i2cr-scom.c fsi: Add I2C Responder SCOM driver 2023-08-11 13:32:14 +09:30
Kconfig fsi: Add I2C Responder SCOM driver 2023-08-11 13:32:14 +09:30
Makefile fsi: Add I2C Responder SCOM driver 2023-08-11 13:32:14 +09:30