Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'auxdisplay-v6.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-auxdisplay

Pull auxdisplay update from Andy Shevchenko:

- Move Holtek 16k33 driver to use agnostic i2c_get_match_data()

- Miscellaneuous cleanups

* tag 'auxdisplay-v6.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-auxdisplay:
auxdisplay: Remove unused functions
auxdisplay: ht16k33: Make use of i2c_get_match_data()
auxdisplay: Drop explicit initialization of struct i2c_device_id::driver_data to 0

+6 -35
-12
drivers/auxdisplay/cfag12864b.c
··· 37 37 MODULE_PARM_DESC(cfag12864b_rate, 38 38 "Refresh rate (hertz)"); 39 39 40 - unsigned int cfag12864b_getrate(void) 41 - { 42 - return cfag12864b_rate; 43 - } 44 - 45 40 /* 46 41 * cfag12864b Commands 47 42 * ··· 244 249 mutex_unlock(&cfag12864b_mutex); 245 250 } 246 251 247 - unsigned char cfag12864b_isenabled(void) 248 - { 249 - return cfag12864b_updating; 250 - } 251 - 252 252 static void cfag12864b_update(struct work_struct *work) 253 253 { 254 254 unsigned char c; ··· 283 293 */ 284 294 285 295 EXPORT_SYMBOL_GPL(cfag12864b_buffer); 286 - EXPORT_SYMBOL_GPL(cfag12864b_getrate); 287 296 EXPORT_SYMBOL_GPL(cfag12864b_enable); 288 297 EXPORT_SYMBOL_GPL(cfag12864b_disable); 289 - EXPORT_SYMBOL_GPL(cfag12864b_isenabled); 290 298 291 299 /* 292 300 * Is the module inited?
+5 -5
drivers/auxdisplay/ht16k33.c
··· 657 657 static int ht16k33_probe(struct i2c_client *client) 658 658 { 659 659 struct device *dev = &client->dev; 660 - const struct of_device_id *id; 661 660 struct ht16k33_priv *priv; 662 661 uint32_t dft_brightness; 663 662 int err; ··· 671 672 return -ENOMEM; 672 673 673 674 priv->client = client; 674 - id = i2c_of_match_device(dev->driver->of_match_table, client); 675 - if (id) 676 - priv->type = (uintptr_t)id->data; 675 + priv->type = (uintptr_t)i2c_get_match_data(client); 676 + 677 677 i2c_set_clientdata(client, priv); 678 678 679 679 err = ht16k33_initialize(priv); ··· 745 747 } 746 748 747 749 static const struct i2c_device_id ht16k33_i2c_match[] = { 748 - { "ht16k33", 0 }, 750 + { "3108", DISP_QUAD_7SEG }, 751 + { "3130", DISP_QUAD_14SEG }, 752 + { "ht16k33", DISP_MATRIX }, 749 753 { } 750 754 }; 751 755 MODULE_DEVICE_TABLE(i2c, ht16k33_i2c_match);
+1 -1
drivers/auxdisplay/lcd2s.c
··· 349 349 } 350 350 351 351 static const struct i2c_device_id lcd2s_i2c_id[] = { 352 - { "lcd2s", 0 }, 352 + { "lcd2s" }, 353 353 { } 354 354 }; 355 355 MODULE_DEVICE_TABLE(i2c, lcd2s_i2c_id);
-17
include/linux/cfag12864b.h
··· 28 28 extern unsigned char * cfag12864b_buffer; 29 29 30 30 /* 31 - * Get the refresh rate of the LCD 32 - * 33 - * Returns the refresh rate (hertz). 34 - */ 35 - extern unsigned int cfag12864b_getrate(void); 36 - 37 - /* 38 31 * Enable refreshing 39 32 * 40 33 * Returns 0 if successful (anyone was using it), ··· 41 48 * You should call this only when you finish using the LCD. 42 49 */ 43 50 extern void cfag12864b_disable(void); 44 - 45 - /* 46 - * Is enabled refreshing? (is anyone using the module?) 47 - * 48 - * Returns 0 if refreshing is not enabled (anyone is using it), 49 - * or != 0 if refreshing is enabled (someone is using it). 50 - * 51 - * Useful for buffer read-only modules. 52 - */ 53 - extern unsigned char cfag12864b_isenabled(void); 54 51 55 52 /* 56 53 * Is the module inited?