@@ -436,6 +436,7 @@ static long linehandle_ioctl(struct file *filep, unsigned int cmd,
436436 true,
437437 lh -> numdescs ,
438438 lh -> descs ,
439+ NULL ,
439440 vals );
440441 if (ret )
441442 return ret ;
@@ -468,6 +469,7 @@ static long linehandle_ioctl(struct file *filep, unsigned int cmd,
468469 true,
469470 lh -> numdescs ,
470471 lh -> descs ,
472+ NULL ,
471473 vals );
472474 }
473475 return - EINVAL ;
@@ -2784,6 +2786,7 @@ static int gpio_chip_get_multiple(struct gpio_chip *chip,
27842786int gpiod_get_array_value_complex (bool raw , bool can_sleep ,
27852787 unsigned int array_size ,
27862788 struct gpio_desc * * desc_array ,
2789+ struct gpio_array * array_info ,
27872790 unsigned long * value_bitmap )
27882791{
27892792 int i = 0 ;
@@ -2897,6 +2900,7 @@ EXPORT_SYMBOL_GPL(gpiod_get_value);
28972900 * gpiod_get_raw_array_value() - read raw values from an array of GPIOs
28982901 * @array_size: number of elements in the descriptor array / value bitmap
28992902 * @desc_array: array of GPIO descriptors whose values will be read
2903+ * @array_info: information on applicability of fast bitmap processing path
29002904 * @value_bitmap: bitmap to store the read values
29012905 *
29022906 * Read the raw values of the GPIOs, i.e. the values of the physical lines
@@ -2908,19 +2912,22 @@ EXPORT_SYMBOL_GPL(gpiod_get_value);
29082912 */
29092913int gpiod_get_raw_array_value (unsigned int array_size ,
29102914 struct gpio_desc * * desc_array ,
2915+ struct gpio_array * array_info ,
29112916 unsigned long * value_bitmap )
29122917{
29132918 if (!desc_array )
29142919 return - EINVAL ;
29152920 return gpiod_get_array_value_complex (true, false, array_size ,
2916- desc_array , value_bitmap );
2921+ desc_array , array_info ,
2922+ value_bitmap );
29172923}
29182924EXPORT_SYMBOL_GPL (gpiod_get_raw_array_value );
29192925
29202926/**
29212927 * gpiod_get_array_value() - read values from an array of GPIOs
29222928 * @array_size: number of elements in the descriptor array / value bitmap
29232929 * @desc_array: array of GPIO descriptors whose values will be read
2930+ * @array_info: information on applicability of fast bitmap processing path
29242931 * @value_bitmap: bitmap to store the read values
29252932 *
29262933 * Read the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status
@@ -2931,12 +2938,14 @@ EXPORT_SYMBOL_GPL(gpiod_get_raw_array_value);
29312938 */
29322939int gpiod_get_array_value (unsigned int array_size ,
29332940 struct gpio_desc * * desc_array ,
2941+ struct gpio_array * array_info ,
29342942 unsigned long * value_bitmap )
29352943{
29362944 if (!desc_array )
29372945 return - EINVAL ;
29382946 return gpiod_get_array_value_complex (false, false, array_size ,
2939- desc_array , value_bitmap );
2947+ desc_array , array_info ,
2948+ value_bitmap );
29402949}
29412950EXPORT_SYMBOL_GPL (gpiod_get_array_value );
29422951
@@ -3029,6 +3038,7 @@ static void gpio_chip_set_multiple(struct gpio_chip *chip,
30293038int gpiod_set_array_value_complex (bool raw , bool can_sleep ,
30303039 unsigned int array_size ,
30313040 struct gpio_desc * * desc_array ,
3041+ struct gpio_array * array_info ,
30323042 unsigned long * value_bitmap )
30333043{
30343044 int i = 0 ;
@@ -3156,6 +3166,7 @@ EXPORT_SYMBOL_GPL(gpiod_set_value);
31563166 * gpiod_set_raw_array_value() - assign values to an array of GPIOs
31573167 * @array_size: number of elements in the descriptor array / value bitmap
31583168 * @desc_array: array of GPIO descriptors whose values will be assigned
3169+ * @array_info: information on applicability of fast bitmap processing path
31593170 * @value_bitmap: bitmap of values to assign
31603171 *
31613172 * Set the raw values of the GPIOs, i.e. the values of the physical lines
@@ -3166,19 +3177,21 @@ EXPORT_SYMBOL_GPL(gpiod_set_value);
31663177 */
31673178int gpiod_set_raw_array_value (unsigned int array_size ,
31683179 struct gpio_desc * * desc_array ,
3180+ struct gpio_array * array_info ,
31693181 unsigned long * value_bitmap )
31703182{
31713183 if (!desc_array )
31723184 return - EINVAL ;
31733185 return gpiod_set_array_value_complex (true, false, array_size ,
3174- desc_array , value_bitmap );
3186+ desc_array , array_info , value_bitmap );
31753187}
31763188EXPORT_SYMBOL_GPL (gpiod_set_raw_array_value );
31773189
31783190/**
31793191 * gpiod_set_array_value() - assign values to an array of GPIOs
31803192 * @array_size: number of elements in the descriptor array / value bitmap
31813193 * @desc_array: array of GPIO descriptors whose values will be assigned
3194+ * @array_info: information on applicability of fast bitmap processing path
31823195 * @value_bitmap: bitmap of values to assign
31833196 *
31843197 * Set the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status
@@ -3189,12 +3202,13 @@ EXPORT_SYMBOL_GPL(gpiod_set_raw_array_value);
31893202 */
31903203void gpiod_set_array_value (unsigned int array_size ,
31913204 struct gpio_desc * * desc_array ,
3205+ struct gpio_array * array_info ,
31923206 unsigned long * value_bitmap )
31933207{
31943208 if (!desc_array )
31953209 return ;
31963210 gpiod_set_array_value_complex (false, false, array_size , desc_array ,
3197- value_bitmap );
3211+ array_info , value_bitmap );
31983212}
31993213EXPORT_SYMBOL_GPL (gpiod_set_array_value );
32003214
@@ -3416,6 +3430,7 @@ EXPORT_SYMBOL_GPL(gpiod_get_value_cansleep);
34163430 * gpiod_get_raw_array_value_cansleep() - read raw values from an array of GPIOs
34173431 * @array_size: number of elements in the descriptor array / value bitmap
34183432 * @desc_array: array of GPIO descriptors whose values will be read
3433+ * @array_info: information on applicability of fast bitmap processing path
34193434 * @value_bitmap: bitmap to store the read values
34203435 *
34213436 * Read the raw values of the GPIOs, i.e. the values of the physical lines
@@ -3426,20 +3441,23 @@ EXPORT_SYMBOL_GPL(gpiod_get_value_cansleep);
34263441 */
34273442int gpiod_get_raw_array_value_cansleep (unsigned int array_size ,
34283443 struct gpio_desc * * desc_array ,
3444+ struct gpio_array * array_info ,
34293445 unsigned long * value_bitmap )
34303446{
34313447 might_sleep_if (extra_checks );
34323448 if (!desc_array )
34333449 return - EINVAL ;
34343450 return gpiod_get_array_value_complex (true, true, array_size ,
3435- desc_array , value_bitmap );
3451+ desc_array , array_info ,
3452+ value_bitmap );
34363453}
34373454EXPORT_SYMBOL_GPL (gpiod_get_raw_array_value_cansleep );
34383455
34393456/**
34403457 * gpiod_get_array_value_cansleep() - read values from an array of GPIOs
34413458 * @array_size: number of elements in the descriptor array / value bitmap
34423459 * @desc_array: array of GPIO descriptors whose values will be read
3460+ * @array_info: information on applicability of fast bitmap processing path
34433461 * @value_bitmap: bitmap to store the read values
34443462 *
34453463 * Read the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status
@@ -3449,13 +3467,15 @@ EXPORT_SYMBOL_GPL(gpiod_get_raw_array_value_cansleep);
34493467 */
34503468int gpiod_get_array_value_cansleep (unsigned int array_size ,
34513469 struct gpio_desc * * desc_array ,
3470+ struct gpio_array * array_info ,
34523471 unsigned long * value_bitmap )
34533472{
34543473 might_sleep_if (extra_checks );
34553474 if (!desc_array )
34563475 return - EINVAL ;
34573476 return gpiod_get_array_value_complex (false, true, array_size ,
3458- desc_array , value_bitmap );
3477+ desc_array , array_info ,
3478+ value_bitmap );
34593479}
34603480EXPORT_SYMBOL_GPL (gpiod_get_array_value_cansleep );
34613481
@@ -3499,6 +3519,7 @@ EXPORT_SYMBOL_GPL(gpiod_set_value_cansleep);
34993519 * gpiod_set_raw_array_value_cansleep() - assign values to an array of GPIOs
35003520 * @array_size: number of elements in the descriptor array / value bitmap
35013521 * @desc_array: array of GPIO descriptors whose values will be assigned
3522+ * @array_info: information on applicability of fast bitmap processing path
35023523 * @value_bitmap: bitmap of values to assign
35033524 *
35043525 * Set the raw values of the GPIOs, i.e. the values of the physical lines
@@ -3508,13 +3529,14 @@ EXPORT_SYMBOL_GPL(gpiod_set_value_cansleep);
35083529 */
35093530int gpiod_set_raw_array_value_cansleep (unsigned int array_size ,
35103531 struct gpio_desc * * desc_array ,
3532+ struct gpio_array * array_info ,
35113533 unsigned long * value_bitmap )
35123534{
35133535 might_sleep_if (extra_checks );
35143536 if (!desc_array )
35153537 return - EINVAL ;
35163538 return gpiod_set_array_value_complex (true, true, array_size , desc_array ,
3517- value_bitmap );
3539+ array_info , value_bitmap );
35183540}
35193541EXPORT_SYMBOL_GPL (gpiod_set_raw_array_value_cansleep );
35203542
@@ -3539,6 +3561,7 @@ void gpiod_add_lookup_tables(struct gpiod_lookup_table **tables, size_t n)
35393561 * gpiod_set_array_value_cansleep() - assign values to an array of GPIOs
35403562 * @array_size: number of elements in the descriptor array / value bitmap
35413563 * @desc_array: array of GPIO descriptors whose values will be assigned
3564+ * @array_info: information on applicability of fast bitmap processing path
35423565 * @value_bitmap: bitmap of values to assign
35433566 *
35443567 * Set the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status
@@ -3548,13 +3571,14 @@ void gpiod_add_lookup_tables(struct gpiod_lookup_table **tables, size_t n)
35483571 */
35493572void gpiod_set_array_value_cansleep (unsigned int array_size ,
35503573 struct gpio_desc * * desc_array ,
3574+ struct gpio_array * array_info ,
35513575 unsigned long * value_bitmap )
35523576{
35533577 might_sleep_if (extra_checks );
35543578 if (!desc_array )
35553579 return ;
35563580 gpiod_set_array_value_complex (false, true, array_size , desc_array ,
3557- value_bitmap );
3581+ array_info , value_bitmap );
35583582}
35593583EXPORT_SYMBOL_GPL (gpiod_set_array_value_cansleep );
35603584
0 commit comments