|
@@ -53,8 +53,8 @@ static inline void ppi_assign_params(union acpi_object params[4],
|
|
|
params[3].package.elements = NULL;
|
|
|
}
|
|
|
|
|
|
-ssize_t tpm_show_ppi_version(struct device *dev, struct device_attribute *attr,
|
|
|
- char *buf)
|
|
|
+static ssize_t tpm_show_ppi_version(struct device *dev,
|
|
|
+ struct device_attribute *attr, char *buf)
|
|
|
{
|
|
|
acpi_handle handle;
|
|
|
acpi_status status;
|
|
@@ -82,9 +82,8 @@ ssize_t tpm_show_ppi_version(struct device *dev, struct device_attribute *attr,
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
-ssize_t tpm_show_ppi_request(struct device *dev,
|
|
|
- struct device_attribute *attr,
|
|
|
- char *buf)
|
|
|
+static ssize_t tpm_show_ppi_request(struct device *dev,
|
|
|
+ struct device_attribute *attr, char *buf)
|
|
|
{
|
|
|
acpi_handle handle;
|
|
|
acpi_status status;
|
|
@@ -132,9 +131,9 @@ cleanup:
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
-ssize_t tpm_store_ppi_request(struct device *dev,
|
|
|
- struct device_attribute *attr,
|
|
|
- const char *buf, size_t count)
|
|
|
+static ssize_t tpm_store_ppi_request(struct device *dev,
|
|
|
+ struct device_attribute *attr,
|
|
|
+ const char *buf, size_t count)
|
|
|
{
|
|
|
char version[PPI_VERSION_LEN + 1];
|
|
|
acpi_handle handle;
|
|
@@ -207,9 +206,9 @@ ssize_t tpm_store_ppi_request(struct device *dev,
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
-ssize_t tpm_show_ppi_transition_action(struct device *dev,
|
|
|
- struct device_attribute *attr,
|
|
|
- char *buf)
|
|
|
+static ssize_t tpm_show_ppi_transition_action(struct device *dev,
|
|
|
+ struct device_attribute *attr,
|
|
|
+ char *buf)
|
|
|
{
|
|
|
char version[PPI_VERSION_LEN + 1];
|
|
|
acpi_handle handle;
|
|
@@ -269,9 +268,9 @@ ssize_t tpm_show_ppi_transition_action(struct device *dev,
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
-ssize_t tpm_show_ppi_response(struct device *dev,
|
|
|
- struct device_attribute *attr,
|
|
|
- char *buf)
|
|
|
+static ssize_t tpm_show_ppi_response(struct device *dev,
|
|
|
+ struct device_attribute *attr,
|
|
|
+ char *buf)
|
|
|
{
|
|
|
acpi_handle handle;
|
|
|
acpi_status status;
|
|
@@ -413,14 +412,16 @@ static ssize_t show_ppi_operations(char *buf, u32 start, u32 end)
|
|
|
return str - buf;
|
|
|
}
|
|
|
|
|
|
-ssize_t tpm_show_ppi_tcg_operations(struct device *dev,
|
|
|
- struct device_attribute *attr, char *buf)
|
|
|
+static ssize_t tpm_show_ppi_tcg_operations(struct device *dev,
|
|
|
+ struct device_attribute *attr,
|
|
|
+ char *buf)
|
|
|
{
|
|
|
return show_ppi_operations(buf, 0, PPI_TPM_REQ_MAX);
|
|
|
}
|
|
|
|
|
|
-ssize_t tpm_show_ppi_vs_operations(struct device *dev,
|
|
|
- struct device_attribute *attr, char *buf)
|
|
|
+static ssize_t tpm_show_ppi_vs_operations(struct device *dev,
|
|
|
+ struct device_attribute *attr,
|
|
|
+ char *buf)
|
|
|
{
|
|
|
return show_ppi_operations(buf, PPI_VS_REQ_START, PPI_VS_REQ_END);
|
|
|
}
|