author | mickeyl <mickeyl> | 2006-02-06 13:40:26 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2006-02-06 13:40:26 (UTC) |
commit | b5e868fd9f1dcc97c388f01f9b99ebfeb891133a (patch) (unidiff) | |
tree | 025a48bb1332c3114384b24979f01f51c5c3987a /libopie2 | |
parent | c5dee755c8f72f83bad3279659b58e1bd4cf28e1 (diff) | |
download | opie-b5e868fd9f1dcc97c388f01f9b99ebfeb891133a.zip opie-b5e868fd9f1dcc97c388f01f9b99ebfeb891133a.tar.gz opie-b5e868fd9f1dcc97c388f01f9b99ebfeb891133a.tar.bz2 |
odevice: tosa now uses corgi-bl. patch courtesy Dirk Opfer - thanks
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 8a7e252..28a1ccf 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp | |||
@@ -221,51 +221,48 @@ void Zaurus::init(const QString& cpu_info) | |||
221 | } else if ( model == "SHARP Tosa" ) { | 221 | } else if ( model == "SHARP Tosa" ) { |
222 | d->m_model = Model_Zaurus_SL6000; | 222 | d->m_model = Model_Zaurus_SL6000; |
223 | d->m_modelstr = "Zaurus SL-6000"; | 223 | d->m_modelstr = "Zaurus SL-6000"; |
224 | } else if ( model == "SHARP Spitz" ) { | 224 | } else if ( model == "SHARP Spitz" ) { |
225 | d->m_model = Model_Zaurus_SLC3000; | 225 | d->m_model = Model_Zaurus_SLC3000; |
226 | d->m_modelstr = "Zaurus SL-C3000"; | 226 | d->m_modelstr = "Zaurus SL-C3000"; |
227 | } else if ( model == "SHARP Akita" ) { | 227 | } else if ( model == "SHARP Akita" ) { |
228 | d->m_model = Model_Zaurus_SLC1000; | 228 | d->m_model = Model_Zaurus_SLC1000; |
229 | d->m_modelstr = "Zaurus SL-C1000"; | 229 | d->m_modelstr = "Zaurus SL-C1000"; |
230 | } else if ( model == "SHARP Borzoi" ) { | 230 | } else if ( model == "SHARP Borzoi" ) { |
231 | d->m_model = Model_Zaurus_SLC3100; | 231 | d->m_model = Model_Zaurus_SLC3100; |
232 | d->m_modelstr = "Zaurus SL-C3100"; | 232 | d->m_modelstr = "Zaurus SL-C3100"; |
233 | } else { | 233 | } else { |
234 | d->m_model = Model_Zaurus_SL5500; | 234 | d->m_model = Model_Zaurus_SL5500; |
235 | d->m_modelstr = "Unknown Zaurus"; | 235 | d->m_modelstr = "Unknown Zaurus"; |
236 | } | 236 | } |
237 | 237 | ||
238 | // set path to backlight device in kernel 2.6 | 238 | // set path to backlight device in kernel 2.6 |
239 | switch ( d->m_model ) | 239 | switch ( d->m_model ) |
240 | { | 240 | { |
241 | case Model_Zaurus_SLB600: // fallthrough | 241 | case Model_Zaurus_SLB600: // fallthrough |
242 | case Model_Zaurus_SL5500: | 242 | case Model_Zaurus_SL5500: |
243 | m_backlightdev = "/sys/class/backlight/locomo-backlight/"; | 243 | m_backlightdev = "/sys/class/backlight/locomo-backlight/"; |
244 | break; | 244 | break; |
245 | case Model_Zaurus_SL6000: | ||
246 | m_backlightdev = "/sys/class/backlight/tosa-bl/"; | ||
247 | break; | ||
248 | default: | 245 | default: |
249 | m_backlightdev = "/sys/class/backlight/corgi-bl/"; | 246 | m_backlightdev = "/sys/class/backlight/corgi-bl/"; |
250 | } | 247 | } |
251 | 248 | ||
252 | // set initial rotation | 249 | // set initial rotation |
253 | switch( d->m_model ) | 250 | switch( d->m_model ) |
254 | { | 251 | { |
255 | case Model_Zaurus_SL6000: // fallthrough | 252 | case Model_Zaurus_SL6000: // fallthrough |
256 | case Model_Zaurus_SLA300: | 253 | case Model_Zaurus_SLA300: |
257 | d->m_rotation = Rot0; | 254 | d->m_rotation = Rot0; |
258 | break; | 255 | break; |
259 | case Model_Zaurus_SLC3100: // fallthrough | 256 | case Model_Zaurus_SLC3100: // fallthrough |
260 | case Model_Zaurus_SLC3000: // fallthrough | 257 | case Model_Zaurus_SLC3000: // fallthrough |
261 | case Model_Zaurus_SLC1000: // fallthrough | 258 | case Model_Zaurus_SLC1000: // fallthrough |
262 | case Model_Zaurus_SLC7x0: | 259 | case Model_Zaurus_SLC7x0: |
263 | initHingeSensor(); | 260 | initHingeSensor(); |
264 | d->m_rotation = rotation(); | 261 | d->m_rotation = rotation(); |
265 | d->m_direction = direction(); | 262 | d->m_direction = direction(); |
266 | break; | 263 | break; |
267 | case Model_Zaurus_SLB600: // fallthrough | 264 | case Model_Zaurus_SLB600: // fallthrough |
268 | case Model_Zaurus_SL5000: // fallthrough | 265 | case Model_Zaurus_SL5000: // fallthrough |
269 | case Model_Zaurus_SL5500: // fallthrough | 266 | case Model_Zaurus_SL5500: // fallthrough |
270 | default: | 267 | default: |
271 | d->m_rotation = Rot270; | 268 | d->m_rotation = Rot270; |