Lines Matching full:features
643 struct mini2440_features_t *features, in mini2440_parse_features() argument
648 features->count = 0; in mini2440_parse_features()
649 features->done = 0; in mini2440_parse_features()
650 features->lcd_index = -1; in mini2440_parse_features()
657 if (features->done & FEATURE_SCREEN) { in mini2440_parse_features()
667 features->optional[features->count++] = in mini2440_parse_features()
669 features->lcd_index = li; in mini2440_parse_features()
672 features->done |= FEATURE_SCREEN; in mini2440_parse_features()
675 if (features->done & FEATURE_BACKLIGHT) in mini2440_parse_features()
679 features->optional[features->count++] = in mini2440_parse_features()
682 features->done |= FEATURE_BACKLIGHT; in mini2440_parse_features()
689 if (features->done & FEATURE_CAMERA) in mini2440_parse_features()
693 features->optional[features->count++] = in mini2440_parse_features()
695 features->done |= FEATURE_CAMERA; in mini2440_parse_features()
703 struct mini2440_features_t features = { 0 }; in mini2440_init() local
710 mini2440_parse_features(&features, mini2440_features_str); in mini2440_init()
734 if (features.lcd_index != -1) { in mini2440_init()
738 &mini2440_lcd_cfg[features.lcd_index]; in mini2440_init()
742 if (li == features.lcd_index) in mini2440_init()
779 if (features.count) /* the optional features */ in mini2440_init()
780 platform_add_devices(features.optional, features.count); in mini2440_init()