power: fix environment detection
power: fix environment detection

Anything coming from sysfs has a newline at the end. Cut it off before
comparing the strings.

Fixes: 20ab67608a39 ("power: add environment capability probing")

Signed-off-by: Anatoly Burakov <814e00d8f6e4e81b7ccc7e3e5a0bfec0078f0203@intel.com>
Acked-by: David Hunt <763be7c8e0ad91e03160e7aed76d5cd41534e2f9@intel.com>
Tested-by: Lihong Ma <0d3c1c1d9a427393ed4b3b6b98e53ee5dd54a1a6@intel.com>
Reviewed-by: Bruce Richardson <66b9e8e8fbd5e9f41f91b0af050876182ce9d0e4@intel.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk