Remove the selectedwindow options.

There is no logic behind the default window selection. The last
option parsed set the default window. Instead of having a specific
boolean set, use the first bit found in the flags for selecting the
the windows.

eg. powerdebug -s -g
	=> flags = SENSOR_OPTION | GPIO_OPTION;
	=> flags = 0x2 | 0x8 = 0x0a
	=> flags = b01010000
	=> fsl(flags) = 2
	=> default window = 1 << fsl(flags) - 1
	=> default window = 1 << 2 - 1
	=> default window = 1 << 1
	=> default window = 2 = SENSOR_OPTION

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
4 files changed