Searched refs:new_custom (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/drivers/iio/temperature/ |
D | ltc2983.c | 422 struct ltc2983_custom_sensor *new_custom; in __ltc2983_custom_sensor_new() local 441 new_custom = devm_kzalloc(dev, sizeof(*new_custom), GFP_KERNEL); in __ltc2983_custom_sensor_new() 442 if (!new_custom) in __ltc2983_custom_sensor_new() 445 new_custom->size = n_entries * n_size; in __ltc2983_custom_sensor_new() 447 if (is_steinhart && new_custom->size != LTC2983_CUSTOM_STEINHART_SIZE) in __ltc2983_custom_sensor_new() 450 new_custom->size, LTC2983_CUSTOM_STEINHART_SIZE); in __ltc2983_custom_sensor_new() 453 if (st->custom_table_size + new_custom->size > in __ltc2983_custom_sensor_new() 457 st->custom_table_size, new_custom->size); in __ltc2983_custom_sensor_new() 461 new_custom->table = devm_kcalloc(dev, n_entries, sizeof(u32), GFP_KERNEL); in __ltc2983_custom_sensor_new() 463 new_custom->table = devm_kcalloc(dev, n_entries, sizeof(u64), GFP_KERNEL); in __ltc2983_custom_sensor_new() [all …]
|