@@ -808,72 +808,7 @@ static void lcd_write_data_tilcd(struct hd44780_common *hdc, int data)
808
808
spin_unlock_irq (& pprt_lock );
809
809
}
810
810
811
- /* fills the display with spaces and resets X/Y */
812
- static void lcd_clear_fast_s (struct charlcd * charlcd )
813
- {
814
- struct hd44780_common * hdc = charlcd -> drvdata ;
815
- int pos ;
816
-
817
- spin_lock_irq (& pprt_lock );
818
- for (pos = 0 ; pos < charlcd -> height * hdc -> hwidth ; pos ++ ) {
819
- lcd_send_serial (0x5F ); /* R/W=W, RS=1 */
820
- lcd_send_serial (' ' & 0x0F );
821
- lcd_send_serial ((' ' >> 4 ) & 0x0F );
822
- /* the shortest data takes at least 40 us */
823
- udelay (40 );
824
- }
825
- spin_unlock_irq (& pprt_lock );
826
- }
827
-
828
- /* fills the display with spaces and resets X/Y */
829
- static void lcd_clear_fast_p8 (struct charlcd * charlcd )
830
- {
831
- struct hd44780_common * hdc = charlcd -> drvdata ;
832
- int pos ;
833
-
834
- spin_lock_irq (& pprt_lock );
835
- for (pos = 0 ; pos < charlcd -> height * hdc -> hwidth ; pos ++ ) {
836
- /* present the data to the data port */
837
- w_dtr (pprt , ' ' );
838
-
839
- /* maintain the data during 20 us before the strobe */
840
- udelay (20 );
841
-
842
- set_bit (LCD_BIT_E , bits );
843
- set_bit (LCD_BIT_RS , bits );
844
- clear_bit (LCD_BIT_RW , bits );
845
- set_ctrl_bits ();
846
-
847
- /* maintain the strobe during 40 us */
848
- udelay (40 );
849
-
850
- clear_bit (LCD_BIT_E , bits );
851
- set_ctrl_bits ();
852
-
853
- /* the shortest data takes at least 45 us */
854
- udelay (45 );
855
- }
856
- spin_unlock_irq (& pprt_lock );
857
- }
858
-
859
- /* fills the display with spaces and resets X/Y */
860
- static void lcd_clear_fast_tilcd (struct charlcd * charlcd )
861
- {
862
- struct hd44780_common * hdc = charlcd -> drvdata ;
863
- int pos ;
864
-
865
- spin_lock_irq (& pprt_lock );
866
- for (pos = 0 ; pos < charlcd -> height * hdc -> hwidth ; pos ++ ) {
867
- /* present the data to the data port */
868
- w_dtr (pprt , ' ' );
869
- udelay (60 );
870
- }
871
-
872
- spin_unlock_irq (& pprt_lock );
873
- }
874
-
875
811
static const struct charlcd_ops charlcd_serial_ops = {
876
- .clear_fast = lcd_clear_fast_s ,
877
812
.backlight = lcd_backlight ,
878
813
.gotoxy = hd44780_common_gotoxy ,
879
814
.home = hd44780_common_home ,
@@ -890,7 +825,6 @@ static const struct charlcd_ops charlcd_serial_ops = {
890
825
};
891
826
892
827
static const struct charlcd_ops charlcd_parallel_ops = {
893
- .clear_fast = lcd_clear_fast_p8 ,
894
828
.backlight = lcd_backlight ,
895
829
.gotoxy = hd44780_common_gotoxy ,
896
830
.home = hd44780_common_home ,
@@ -907,7 +841,6 @@ static const struct charlcd_ops charlcd_parallel_ops = {
907
841
};
908
842
909
843
static const struct charlcd_ops charlcd_tilcd_ops = {
910
- .clear_fast = lcd_clear_fast_tilcd ,
911
844
.backlight = lcd_backlight ,
912
845
.gotoxy = hd44780_common_gotoxy ,
913
846
.home = hd44780_common_home ,
0 commit comments