-rw-r--r-- | libopie2/opiecore/device/odevice_motorola_ezx.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libopie2/opiecore/device/odevice_motorola_ezx.cpp b/libopie2/opiecore/device/odevice_motorola_ezx.cpp index 69256dd..eed81ac 100644 --- a/libopie2/opiecore/device/odevice_motorola_ezx.cpp +++ b/libopie2/opiecore/device/odevice_motorola_ezx.cpp | |||
@@ -218,20 +218,3 @@ int Motorola_EZX::displayBrightnessResolution() const | |||
218 | { | 218 | { |
219 | // Currently not supported | ||
220 | qDebug( "Motorola_EZX::displayBrightnessResolution: ODevice handling not yet implemented" ); | ||
221 | return 100; | ||
222 | |||
223 | #if 0 | ||
224 | int res = 1; | 219 | int res = 1; |
225 | if (m_embedix) | ||
226 | { | ||
227 | int fd = ::open( SHARP_FL_IOCTL_DEVICE, O_RDWR|O_NONBLOCK ); | ||
228 | if ( fd ) | ||
229 | { | ||
230 | int value = ::ioctl( fd, SHARP_FL_IOCTL_GET_STEP, 0 ); | ||
231 | ::close( fd ); | ||
232 | return value ? value : res; | ||
233 | } | ||
234 | } | ||
235 | else | ||
236 | { | ||
237 | int fd = ::open( m_backlightdev + "max_brightness", O_RDONLY|O_NONBLOCK ); | 220 | int fd = ::open( m_backlightdev + "max_brightness", O_RDONLY|O_NONBLOCK ); |
@@ -243,5 +226,3 @@ int Motorola_EZX::displayBrightnessResolution() const | |||
243 | } | 226 | } |
244 | } | ||
245 | return res; | 227 | return res; |
246 | #endif | ||
247 | } | 228 | } |
@@ -253,3 +234,2 @@ bool Motorola_EZX::setDisplayBrightness( int bright ) | |||
253 | 234 | ||
254 | #if 0 | ||
255 | bool res = false; | 235 | bool res = false; |
@@ -262,13 +242,2 @@ bool Motorola_EZX::setDisplayBrightness( int bright ) | |||
262 | 242 | ||
263 | if ( m_embedix ) | ||
264 | { | ||
265 | int fd = ::open( SHARP_FL_IOCTL_DEVICE, O_WRONLY|O_NONBLOCK ); | ||
266 | if ( fd ) | ||
267 | { | ||
268 | res = ( ::ioctl( fd, SHARP_FL_IOCTL_STEP_CONTRAST, val ) == 0 ); | ||
269 | ::close( fd ); | ||
270 | } | ||
271 | } | ||
272 | else | ||
273 | { | ||
274 | int fd = ::open( m_backlightdev + "brightness", O_WRONLY|O_NONBLOCK ); | 243 | int fd = ::open( m_backlightdev + "brightness", O_WRONLY|O_NONBLOCK ); |
@@ -281,5 +250,3 @@ bool Motorola_EZX::setDisplayBrightness( int bright ) | |||
281 | } | 250 | } |
282 | } | ||
283 | return res; | 251 | return res; |
284 | #endif | ||
285 | } | 252 | } |