linux/drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Functions corresponding to string type attributes under BIOS String GUID for use with
 * dell-wmi-sysman
 *
 *  Copyright (c) 2020 Dell Inc.
 */

#include "dell-wmi-sysman.h"

enum string_properties {};

get_instance_id(str);

static ssize_t current_value_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{}

/**
 * validate_str_input() - Validate input of current_value against min and max lengths
 * @instance_id: The instance on which input is validated
 * @buf: Input value
 */
static int validate_str_input(int instance_id, const char *buf)
{}

attribute_s_property_show(display_name_language_code, str);
static struct kobj_attribute str_displ_langcode =;

attribute_s_property_show(display_name, str);
static struct kobj_attribute str_displ_name =;

attribute_s_property_show(default_value, str);
static struct kobj_attribute str_default_val =;

attribute_property_store(current_value, str);
static struct kobj_attribute str_current_val =;

attribute_s_property_show(dell_modifier, str);
static struct kobj_attribute str_modifier =;

attribute_n_property_show(min_length, str);
static struct kobj_attribute str_min_length =;

attribute_n_property_show(max_length, str);
static struct kobj_attribute str_max_length =;

static ssize_t type_show(struct kobject *kobj, struct kobj_attribute *attr,
			 char *buf)
{}
static struct kobj_attribute str_type =;

static struct attribute *str_attrs[] =;

static const struct attribute_group str_attr_group =;

int alloc_str_data(void)
{}

/**
 * populate_str_data() - Populate all properties of an instance under string attribute
 * @str_obj: ACPI object with string data
 * @instance_id: The instance to enumerate
 * @attr_name_kobj: The parent kernel object
 */
int populate_str_data(union acpi_object *str_obj, int instance_id, struct kobject *attr_name_kobj)
{}

/**
 * exit_str_attributes() - Clear all attribute data
 *
 * Clears all data allocated for this group of attributes
 */
void exit_str_attributes(void)
{}