equal
deleted
inserted
replaced
779 ) |
779 ) |
780 { |
780 { |
781 ec_slave_t *slave = container_of(kobj, ec_slave_t, kobj); |
781 ec_slave_t *slave = container_of(kobj, ec_slave_t, kobj); |
782 |
782 |
783 if (attr == &attr_state) { |
783 if (attr == &attr_state) { |
784 char state[25]; |
784 char state[EC_STATE_STRING_SIZE]; |
785 if (!strcmp(buffer, "INIT\n")) |
785 if (!strcmp(buffer, "INIT\n")) |
786 slave->requested_state = EC_SLAVE_STATE_INIT; |
786 slave->requested_state = EC_SLAVE_STATE_INIT; |
787 else if (!strcmp(buffer, "PREOP\n")) |
787 else if (!strcmp(buffer, "PREOP\n")) |
788 slave->requested_state = EC_SLAVE_STATE_PREOP; |
788 slave->requested_state = EC_SLAVE_STATE_PREOP; |
789 else if (!strcmp(buffer, "SAVEOP\n")) |
789 else if (!strcmp(buffer, "SAVEOP\n")) |