Diffstat (limited to 'libopie2/opiecore/device/odevice_motorola_ezx.cpp') (more/less context) (show whitespace changes)
-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 @@ -217,22 +217,5 @@ bool Motorola_EZX::setLedState( OLed which, OLedState st ) int Motorola_EZX::displayBrightnessResolution() const { - // Currently not supported - qDebug( "Motorola_EZX::displayBrightnessResolution: ODevice handling not yet implemented" ); - return 100; - -#if 0 int res = 1; - if (m_embedix) - { - int fd = ::open( SHARP_FL_IOCTL_DEVICE, O_RDWR|O_NONBLOCK ); - if ( fd ) - { - int value = ::ioctl( fd, SHARP_FL_IOCTL_GET_STEP, 0 ); - ::close( fd ); - return value ? value : res; - } - } - else - { int fd = ::open( m_backlightdev + "max_brightness", O_RDONLY|O_NONBLOCK ); if ( fd ) @@ -242,7 +225,5 @@ int Motorola_EZX::displayBrightnessResolution() const ::close( fd ); } - } return res; -#endif } @@ -252,5 +233,4 @@ bool Motorola_EZX::setDisplayBrightness( int bright ) return false; -#if 0 bool res = false; @@ -261,15 +241,4 @@ bool Motorola_EZX::setDisplayBrightness( int bright ) int val = ( bright == 1 ) ? 1 : ( bright * numberOfSteps ) / 255; - if ( m_embedix ) - { - int fd = ::open( SHARP_FL_IOCTL_DEVICE, O_WRONLY|O_NONBLOCK ); - if ( fd ) - { - res = ( ::ioctl( fd, SHARP_FL_IOCTL_STEP_CONTRAST, val ) == 0 ); - ::close( fd ); - } - } - else - { int fd = ::open( m_backlightdev + "brightness", O_WRONLY|O_NONBLOCK ); if ( fd ) @@ -280,7 +249,5 @@ bool Motorola_EZX::setDisplayBrightness( int bright ) ::close( fd ); } - } return res; -#endif } |