mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	target/KernelConfig: Ensure get_config_name is static
				
					
				
			`get_config_name` was previsouly treaded as a bound method so ensure that is defined as static as expected.
This commit is contained in:
		@@ -2009,6 +2009,9 @@ class KernelConfig(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    This class does not provide a Mapping API and only return string values.
 | 
					    This class does not provide a Mapping API and only return string values.
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
 | 
					    @staticmethod
 | 
				
			||||||
 | 
					    def get_config_name(name):
 | 
				
			||||||
 | 
					        return TypedKernelConfig.get_config_name(name)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, text):
 | 
					    def __init__(self, text):
 | 
				
			||||||
        # Expose typed_config as a non-private attribute, so that user code
 | 
					        # Expose typed_config as a non-private attribute, so that user code
 | 
				
			||||||
@@ -2017,7 +2020,6 @@ class KernelConfig(object):
 | 
				
			|||||||
        # Expose the original text for backward compatibility
 | 
					        # Expose the original text for backward compatibility
 | 
				
			||||||
        self.text = text
 | 
					        self.text = text
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    get_config_name = TypedKernelConfig.get_config_name
 | 
					 | 
				
			||||||
    not_set_regex = TypedKernelConfig.not_set_regex
 | 
					    not_set_regex = TypedKernelConfig.not_set_regex
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def iteritems(self):
 | 
					    def iteritems(self):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user