The trouble with porting to Kindle 3 (not sure about later versions as I didn't look at their kernels) is that it already has a different contrast ioctl (accessed as command 19 via update_display). It provides not as good contrast adjustments (they output only 4-bit shades and the monochrome adjustment is extremely dark).
On K3, it currently allows levels 0 through 7. I think the code could be combined in the following way: Add a level 8, which enables the new contrast table. Route all contrast lookups through the K3's pointer rather than directly through the custom table.
|