Skip to content

Commit afe29b7

Browse files
FASTSHIFTpengyiqiang
andauthored
refact(user_data): remove LV_USE_USER_DATA configuration (lvgl#4056)
Signed-off-by: pengyiqiang <[email protected]> Co-authored-by: pengyiqiang <[email protected]>
1 parent e26a46c commit afe29b7

34 files changed

+12
-113
lines changed

Kconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,6 @@ menu "LVGL configuration"
441441
bool "Enable float in built-in (v)snprintf functions"
442442
depends on !LV_SPRINTF_CUSTOM
443443

444-
config LV_USE_USER_DATA
445-
bool "Add a 'user_data' to drivers and objects."
446-
default y
447-
448444
config LV_ENABLE_GC
449445
bool "Enable garbage collector"
450446

demos/flex_layout/lv_demo_flex_layout_ctrl_pad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "lv_demo_flex_layout_main.h"
1111

12-
#if LV_USE_DEMO_FLEX_LAYOUT && LV_USE_USER_DATA
12+
#if LV_USE_DEMO_FLEX_LAYOUT
1313

1414
/*********************
1515
* DEFINES

demos/flex_layout/lv_demo_flex_layout_flex_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "lv_demo_flex_layout_main.h"
1111

12-
#if LV_USE_DEMO_FLEX_LAYOUT && LV_USE_USER_DATA
12+
#if LV_USE_DEMO_FLEX_LAYOUT
1313

1414
/*********************
1515
* DEFINES

demos/flex_layout/lv_demo_flex_layout_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "lv_demo_flex_layout_main.h"
1111
#include "lv_demo_flex_layout.h"
1212

13-
#if LV_USE_DEMO_FLEX_LAYOUT && LV_USE_USER_DATA
13+
#if LV_USE_DEMO_FLEX_LAYOUT
1414

1515
/*********************
1616
* DEFINES

demos/flex_layout/lv_demo_flex_layout_view.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "lv_demo_flex_layout_main.h"
1111

12-
#if LV_USE_DEMO_FLEX_LAYOUT && LV_USE_USER_DATA
12+
#if LV_USE_DEMO_FLEX_LAYOUT
1313

1414
/*********************
1515
* DEFINES

demos/flex_layout/lv_demo_flex_layout_view_child_node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "lv_demo_flex_layout_main.h"
1111

12-
#if LV_USE_DEMO_FLEX_LAYOUT && LV_USE_USER_DATA
12+
#if LV_USE_DEMO_FLEX_LAYOUT
1313

1414
/*********************
1515
* DEFINES

demos/flex_layout/lv_demo_flex_layout_view_ctrl_pad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "lv_demo_flex_layout_main.h"
1111

12-
#if LV_USE_DEMO_FLEX_LAYOUT && LV_USE_USER_DATA
12+
#if LV_USE_DEMO_FLEX_LAYOUT
1313

1414
/*********************
1515
* DEFINES

demos/lv_demos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extern "C" {
3535
#include "widgets/lv_demo_widgets.h"
3636
#endif
3737

38-
#if LV_USE_DEMO_FLEX_LAYOUT && LV_USE_USER_DATA
38+
#if LV_USE_DEMO_FLEX_LAYOUT
3939
#include "flex_layout/lv_demo_flex_layout.h"
4040
#endif
4141

env_support/cmsis-pack/lv_conf_cmsis.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@
279279
*Only used if software rotation is enabled in the display driver.*/
280280
#define LV_DISP_ROT_MAX_BUF (10*1024)
281281

282-
#define LV_USE_USER_DATA 1
283-
284282
/*Garbage Collector settings
285283
*Used if lvgl is bound to higher level language and the memory is managed by that language*/
286284
#define LV_ENABLE_GC 0

examples/widgets/menu/lv_example_menu_3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "../../lv_examples.h"
2-
#if LV_USE_MENU && LV_USE_USER_DATA && LV_BUILD_EXAMPLES
2+
#if LV_USE_MENU && LV_BUILD_EXAMPLES
33

44
void lv_example_menu_3(void)
55
{

0 commit comments

Comments
 (0)