| 334 | } |
| 335 | |
| 336 | struct chip_instance *new_chip_instance(char *path) |
| 337 | { |
| 338 | struct chip *chip = get_chip(path); |
| 339 | struct chip_instance *instance = S_ALLOC(sizeof(*instance)); |
| 340 | |
| 341 | instance->chip = chip; |
| 342 | instance->next = chip->instance; |
| 343 | chip->instance = instance; |
| 344 | |
| 345 | return instance; |
| 346 | } |
| 347 | |
| 348 | /* List of fw_config fields added during parsing. */ |
| 349 | static struct fw_config_field *fw_config_fields; |
nothing calls this directly
no test coverage detected