Home
last modified time | relevance | path

Searched refs:new_custom (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/iio/temperature/
H A Dltc2983.c388 struct ltc2983_custom_sensor *new_custom; in __ltc2983_custom_sensor_new() local
405 new_custom = devm_kzalloc(dev, sizeof(*new_custom), GFP_KERNEL); in __ltc2983_custom_sensor_new()
406 if (!new_custom) in __ltc2983_custom_sensor_new()
409 new_custom->size = n_entries * n_size; in __ltc2983_custom_sensor_new()
411 if (is_steinhart && new_custom->size != LTC2983_CUSTOM_STEINHART_SIZE) { in __ltc2983_custom_sensor_new()
413 new_custom->size); in __ltc2983_custom_sensor_new()
417 if (st->custom_table_size + new_custom->size > in __ltc2983_custom_sensor_new()
421 st->custom_table_size, new_custom->size); in __ltc2983_custom_sensor_new()
426 new_custom in __ltc2983_custom_sensor_new()
[all...]
/kernel/linux/linux-6.6/drivers/iio/temperature/
H A Dltc2983.c418 struct ltc2983_custom_sensor *new_custom; in __ltc2983_custom_sensor_new() local
438 new_custom = devm_kzalloc(dev, sizeof(*new_custom), GFP_KERNEL); in __ltc2983_custom_sensor_new()
439 if (!new_custom) in __ltc2983_custom_sensor_new()
442 new_custom->size = n_entries * n_size; in __ltc2983_custom_sensor_new()
444 if (is_steinhart && new_custom->size != LTC2983_CUSTOM_STEINHART_SIZE) { in __ltc2983_custom_sensor_new()
445 dev_err(dev, "Steinhart sensors size(%zu) must be %u\n", new_custom->size, in __ltc2983_custom_sensor_new()
450 if (st->custom_table_size + new_custom->size > in __ltc2983_custom_sensor_new()
454 st->custom_table_size, new_custom->size); in __ltc2983_custom_sensor_new()
460 new_custom in __ltc2983_custom_sensor_new()
[all...]

Completed in 7 milliseconds