+ case 'p':
+ power_mode = atoi(optarg);
+ switch(power_mode) {
+ case AM7XXX_POWER_OFF:
+ case AM7XXX_POWER_LOW:
+ case AM7XXX_POWER_MIDDLE:
+ case AM7XXX_POWER_HIGH:
+ case AM7XXX_POWER_TURBO:
+ fprintf(stdout, "Power mode: %x\n", power_mode);
+ break;
+ default:
+ fprintf(stderr, "Invalid power mode value, must be between %x and %x\n", AM7XXX_POWER_OFF, AM7XXX_POWER_TURBO);
+ ret = -EINVAL;
+ goto out;
+ }
+ break;