Lines Matching refs:new_custom
386 struct ltc2983_custom_sensor *new_custom; in __ltc2983_custom_sensor_new() local
403 new_custom = devm_kzalloc(dev, sizeof(*new_custom), GFP_KERNEL); in __ltc2983_custom_sensor_new()
404 if (!new_custom) in __ltc2983_custom_sensor_new()
407 new_custom->size = n_entries * n_size; in __ltc2983_custom_sensor_new()
409 if (is_steinhart && new_custom->size != LTC2983_CUSTOM_STEINHART_SIZE) { in __ltc2983_custom_sensor_new()
411 new_custom->size); in __ltc2983_custom_sensor_new()
415 if (st->custom_table_size + new_custom->size > in __ltc2983_custom_sensor_new()
419 st->custom_table_size, new_custom->size); in __ltc2983_custom_sensor_new()
424 new_custom->table = devm_kzalloc(dev, new_custom->size, GFP_KERNEL); in __ltc2983_custom_sensor_new()
425 if (!new_custom->table) in __ltc2983_custom_sensor_new()
454 new_custom->table[tbl++] = in __ltc2983_custom_sensor_new()
458 new_custom->is_steinhart = is_steinhart; in __ltc2983_custom_sensor_new()
471 new_custom->offset = st->custom_table_size / in __ltc2983_custom_sensor_new()
473 st->custom_table_size += new_custom->size; in __ltc2983_custom_sensor_new()
476 new_custom->offset = -1; in __ltc2983_custom_sensor_new()
479 return new_custom; in __ltc2983_custom_sensor_new()