enclosure_status
static const char *const enclosure_status[] = {
return sysfs_emit(buf, "%s\n", enclosure_status[ecomp->status]);
for (i = 0; enclosure_status[i]; i++) {
if (strncmp(buf, enclosure_status[i],
strlen(enclosure_status[i])) == 0 &&
(buf[strlen(enclosure_status[i])] == '\n' ||
buf[strlen(enclosure_status[i])] == '\0'))
if (enclosure_status[i] && edev->cb->set_status) {
enum enclosure_status);
enum enclosure_status status;