File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -92,17 +92,19 @@ void ks0108_displaystate(unsigned char state)
9292
9393void ks0108_startline (unsigned char startline )
9494{
95- ks0108_writedata (min (startline ,(unsigned char )63 ) | bit (6 ) | bit (7 ));
95+ ks0108_writedata (min_t (unsigned char , startline , 63 ) | bit (6 ) |
96+ bit (7 ));
9697}
9798
9899void ks0108_address (unsigned char address )
99100{
100- ks0108_writedata (min ( address ,( unsigned char ) 63 ) | bit (6 ));
101+ ks0108_writedata (min_t ( unsigned char , address , 63 ) | bit (6 ));
101102}
102103
103104void ks0108_page (unsigned char page )
104105{
105- ks0108_writedata (min (page ,(unsigned char )7 ) | bit (3 ) | bit (4 ) | bit (5 ) | bit (7 ));
106+ ks0108_writedata (min_t (unsigned char , page , 7 ) | bit (3 ) | bit (4 ) |
107+ bit (5 ) | bit (7 ));
106108}
107109
108110EXPORT_SYMBOL_GPL (ks0108_writedata );
You can’t perform that action at this time.
0 commit comments