scripts/spelling.txt: add "an union" pattern and fix typo instances

Fix typos and add the following to the scripts/spelling.txt:

  an union||a union

Link: http://lkml.kernel.org/r/1481573103-11329-5-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Masahiro Yamada 2017-02-27 14:28:49 -08:00 committed by Linus Torvalds
parent 9332ef9dbd
commit 03440c4e5e
14 changed files with 19 additions and 18 deletions

View File

@ -9,7 +9,7 @@ frontend parameters
The kind of parameters passed to the frontend device for tuning depend The kind of parameters passed to the frontend device for tuning depend
on the kind of hardware you are using. on the kind of hardware you are using.
The struct ``dvb_frontend_parameters`` uses an union with specific The struct ``dvb_frontend_parameters`` uses a union with specific
per-system parameters. However, as newer delivery systems required more per-system parameters. However, as newer delivery systems required more
data, the structure size weren't enough to fit, and just extending its data, the structure size weren't enough to fit, and just extending its
size would break the existing applications. So, those parameters were size would break the existing applications. So, those parameters were
@ -23,7 +23,7 @@ So, newer applications should use
instead, in order to be able to support the newer System Delivery like instead, in order to be able to support the newer System Delivery like
DVB-S2, DVB-T2, DVB-C2, ISDB, etc. DVB-S2, DVB-T2, DVB-C2, ISDB, etc.
All kinds of parameters are combined as an union in the All kinds of parameters are combined as a union in the
FrontendParameters structure: FrontendParameters structure:

View File

@ -15,7 +15,7 @@
* FIXME: Accessing the desc_struct through its fields is more elegant, * FIXME: Accessing the desc_struct through its fields is more elegant,
* and should be the one valid thing to do. However, a lot of open code * and should be the one valid thing to do. However, a lot of open code
* still touches the a and b accessors, and doing this allow us to do it * still touches the a and b accessors, and doing this allow us to do it
* incrementally. We keep the signature as a struct, rather than an union, * incrementally. We keep the signature as a struct, rather than a union,
* so we can get rid of it transparently in the future -- glommer * so we can get rid of it transparently in the future -- glommer
*/ */
/* 8 byte segment descriptor */ /* 8 byte segment descriptor */

View File

@ -242,7 +242,7 @@ acpi_status acpi_db_convert_to_package(char *string, union acpi_object *object)
* *
* RETURN: Status * RETURN: Status
* *
* DESCRIPTION: Convert a typed and tokenized string to an union acpi_object. Typing: * DESCRIPTION: Convert a typed and tokenized string to a union acpi_object. Typing:
* 1) String objects were surrounded by quotes. * 1) String objects were surrounded by quotes.
* 2) Buffer objects were surrounded by parentheses. * 2) Buffer objects were surrounded by parentheses.
* 3) Package objects were surrounded by brackets "[]". * 3) Package objects were surrounded by brackets "[]".

View File

@ -323,7 +323,7 @@ acpi_ns_check_reference(struct acpi_evaluate_info *info,
/* /*
* Check the reference object for the correct reference type (opcode). * Check the reference object for the correct reference type (opcode).
* The only type of reference that can be converted to an union acpi_object is * The only type of reference that can be converted to a union acpi_object is
* a reference to a named object (reference class: NAME) * a reference to a named object (reference class: NAME)
*/ */
if (return_object->reference.class == ACPI_REFCLASS_NAME) { if (return_object->reference.class == ACPI_REFCLASS_NAME) {

View File

@ -495,9 +495,9 @@ static void acpi_ns_resolve_references(struct acpi_evaluate_info *info)
/* /*
* Two types of references are supported - those created by Index and * Two types of references are supported - those created by Index and
* ref_of operators. A name reference (AML_NAMEPATH_OP) can be converted * ref_of operators. A name reference (AML_NAMEPATH_OP) can be converted
* to an union acpi_object, so it is not dereferenced here. A ddb_handle * to a union acpi_object, so it is not dereferenced here. A ddb_handle
* (AML_LOAD_OP) cannot be dereferenced, nor can it be converted to * (AML_LOAD_OP) cannot be dereferenced, nor can it be converted to
* an union acpi_object. * a union acpi_object.
*/ */
switch (info->return_object->reference.class) { switch (info->return_object->reference.class) {
case ACPI_REFCLASS_INDEX: case ACPI_REFCLASS_INDEX:

View File

@ -1704,7 +1704,7 @@ struct ost_lvb {
* lquota data structures * lquota data structures
*/ */
/* The lquota_id structure is an union of all the possible identifier types that /* The lquota_id structure is a union of all the possible identifier types that
* can be used with quota, this includes: * can be used with quota, this includes:
* - 64-bit user ID * - 64-bit user ID
* - 64-bit group ID * - 64-bit group ID

View File

@ -562,7 +562,7 @@ static inline struct dentry *d_backing_dentry(struct dentry *upper)
* @inode: inode to select the dentry from multiple layers (can be NULL) * @inode: inode to select the dentry from multiple layers (can be NULL)
* @flags: open flags to control copy-up behavior * @flags: open flags to control copy-up behavior
* *
* If dentry is on an union/overlay, then return the underlying, real dentry. * If dentry is on a union/overlay, then return the underlying, real dentry.
* Otherwise return the dentry itself. * Otherwise return the dentry itself.
* *
* See also: Documentation/filesystems/vfs.txt * See also: Documentation/filesystems/vfs.txt
@ -581,7 +581,7 @@ static inline struct dentry *d_real(struct dentry *dentry,
* d_real_inode - Return the real inode * d_real_inode - Return the real inode
* @dentry: The dentry to query * @dentry: The dentry to query
* *
* If dentry is on an union/overlay, then return the underlying, real inode. * If dentry is on a union/overlay, then return the underlying, real inode.
* Otherwise return d_inode(). * Otherwise return d_inode().
*/ */
static inline struct inode *d_real_inode(const struct dentry *dentry) static inline struct inode *d_real_inode(const struct dentry *dentry)

View File

@ -174,10 +174,10 @@ typedef void (*v4l2_ctrl_notify_fnc)(struct v4l2_ctrl *ctrl, void *priv);
* not freed when the control is deleted. Should this be needed * not freed when the control is deleted. Should this be needed
* then a new internal bitfield can be added to tell the framework * then a new internal bitfield can be added to tell the framework
* to free this pointer. * to free this pointer.
* @p_cur: The control's current value represented via an union with * @p_cur: The control's current value represented via a union with
* provides a standard way of accessing control types * provides a standard way of accessing control types
* through a pointer. * through a pointer.
* @p_new: The control's new value represented via an union with provides * @p_new: The control's new value represented via a union with provides
* a standard way of accessing control types * a standard way of accessing control types
* through a pointer. * through a pointer.
*/ */

View File

@ -181,7 +181,7 @@ struct grant_entry_header {
}; };
/* /*
* Version 2 of the grant entry structure, here is an union because three * Version 2 of the grant entry structure, here is a union because three
* different types are suppotted: full_page, sub_page and transitive. * different types are suppotted: full_page, sub_page and transitive.
*/ */
union grant_entry_v2 { union grant_entry_v2 {

View File

@ -86,6 +86,7 @@ alue||value
ambigious||ambiguous ambigious||ambiguous
amoung||among amoung||among
amout||amount amout||amount
an union||a union
an user||a user an user||a user
an userspace||a userspace an userspace||a userspace
analysator||analyzer analysator||analyzer

View File

@ -254,7 +254,7 @@ static int snd_wm8766_ctl_put(struct snd_kcontrol *kcontrol,
int n = kcontrol->private_value; int n = kcontrol->private_value;
u16 val, regval1, regval2; u16 val, regval1, regval2;
/* this also works for enum because value is an union */ /* this also works for enum because value is a union */
regval1 = ucontrol->value.integer.value[0]; regval1 = ucontrol->value.integer.value[0];
regval2 = ucontrol->value.integer.value[1]; regval2 = ucontrol->value.integer.value[1];
if (wm->ctl[n].flags & WM8766_FLAG_INVERT) { if (wm->ctl[n].flags & WM8766_FLAG_INVERT) {

View File

@ -528,7 +528,7 @@ static int snd_wm8776_ctl_put(struct snd_kcontrol *kcontrol,
int n = kcontrol->private_value; int n = kcontrol->private_value;
u16 val, regval1, regval2; u16 val, regval1, regval2;
/* this also works for enum because value is an union */ /* this also works for enum because value is a union */
regval1 = ucontrol->value.integer.value[0]; regval1 = ucontrol->value.integer.value[0];
regval2 = ucontrol->value.integer.value[1]; regval2 = ucontrol->value.integer.value[1];
if (wm->ctl[n].flags & WM8776_FLAG_INVERT) { if (wm->ctl[n].flags & WM8776_FLAG_INVERT) {

View File

@ -464,7 +464,7 @@ static int convert_variable_fields(Dwarf_Die *vr_die, const char *varname,
/* Verify it is a data structure */ /* Verify it is a data structure */
tag = dwarf_tag(&type); tag = dwarf_tag(&type);
if (tag != DW_TAG_structure_type && tag != DW_TAG_union_type) { if (tag != DW_TAG_structure_type && tag != DW_TAG_union_type) {
pr_warning("%s is not a data structure nor an union.\n", pr_warning("%s is not a data structure nor a union.\n",
varname); varname);
return -EINVAL; return -EINVAL;
} }
@ -479,7 +479,7 @@ static int convert_variable_fields(Dwarf_Die *vr_die, const char *varname,
} else { } else {
/* Verify it is a data structure */ /* Verify it is a data structure */
if (tag != DW_TAG_structure_type && tag != DW_TAG_union_type) { if (tag != DW_TAG_structure_type && tag != DW_TAG_union_type) {
pr_warning("%s is not a data structure nor an union.\n", pr_warning("%s is not a data structure nor a union.\n",
varname); varname);
return -EINVAL; return -EINVAL;
} }

View File

@ -108,7 +108,7 @@ struct hist_entry {
/* /*
* Since perf diff only supports the stdio output, TUI * Since perf diff only supports the stdio output, TUI
* fields are only accessed from perf report (or perf * fields are only accessed from perf report (or perf
* top). So make it an union to reduce memory usage. * top). So make it a union to reduce memory usage.
*/ */
struct hist_entry_diff diff; struct hist_entry_diff diff;
struct /* for TUI */ { struct /* for TUI */ {