apple-gmux: Hard Code max brightness for MMIO gmux
authorOrlando Chamberlain <orlandoch.dev@gmail.com>
Tue, 17 Oct 2023 11:14:45 +0000 (22:14 +1100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 18 Oct 2023 13:33:24 +0000 (15:33 +0200)
commit0e51cb42438b8754d8f4cee4c802a8c5bb2cd5e0
tree9b7939422595e1cdcd7994e4711da1e68d345fed
parentfe0e04cf66a12ffe6d1b43725ddaabd5599d024f
apple-gmux: Hard Code max brightness for MMIO gmux

The data in the max brightness port for iMacs with MMIO gmux incorrectly
reports 0x03ff, but it should be 0xffff. As all other MMIO gmux models
have 0xffff, hard code this for all MMIO gmux's so they all have the
proper brightness range accessible.

Fixes: 0c18184de990 ("platform/x86: apple-gmux: support MMIO gmux on T2 Macs")
Reported-by: Karsten Leipold <poldi@dfn.de>
Signed-off-by: Orlando Chamberlain <orlandoch.dev@gmail.com>
Link: https://lore.kernel.org/r/20231017111444.19304-2-orlandoch.dev@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/apple-gmux.c