Staging: dt3155: fix 50Hz configuration
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 14 Apr 2010 23:29:17 +0000 (18:29 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:30:10 +0000 (09:30 -0700)
commit6536560cabab170ed2969b005bf69a496e9c45bf
tree0b4453d8abd63b0d44814f1fad6063edce2d157b
parentd01f42a22ef381ba973958e977209ac9a8667d57
Staging: dt3155: fix 50Hz configuration

According to the header file, dt3155_io.h, the 50/60 Hz configuration
is controlled by a bit in the I2C CSR2 register (bit 2).  The function
dt3155_init_isr actually reads the I2C CONFIG register into the global
I2C_CSR union variable then modifies the bit.  It then does a write
to the I2C CONFIG register with the global I2C_CONFIG union variable
which is not even set with a value anywhere in the driver.

My guess is 50Hz operation doesn't even work as-is.

Fix this by actually reading and writing the correct register with
the correct value.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Simon Horman <horms@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/dt3155/dt3155_drv.c