lid: Only change the lid state when forcing open
lid: Only change the lid state when forcing open

Force the lid state only when it is being changed.

When the system starts, it always sends a message to disable
the forced lid open. However if the EC command lidclose has been
run, disabling the forced lid open will read the actual lid status
from the GPIO, possibly overriding the state set by lidclose.

BUG=b:244082750
TEST=Pass firmware.ECLidSwitch.close_lid_to_shutdown
BRANCH=none

Signed-off-by: Andrew McRae <44ad1424cfc8411c96d9181798ca41ae55709dfb@google.com>
Change-Id: I10595e45e5055422c1c8ce66d8271c96749848ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3877883
Code-Coverage: Zoss <345cf107e82c70959d46f59d98bddc98ce458aff@prod.google.com>
Reviewed-by: Peter Marheine <ef0b2c492edde94778d7465bfbaeed52c5be6858@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec