summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys
AgeCommit message (Expand)Author
2019-07-25staging: unisys: visornic: Update the description of 'poll_for_irq()'Christophe JAILLET
2019-07-15docs: driver-model: move it to the driver-api bookMauro Carvalho Chehab
2019-07-11Merge tag 'staging-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds
2019-06-20scsi: staging: unisys: visorhba: use sg helper to iterate over scatterlistMing Lei
2019-05-23staging: unisys: visornic: Replace GFP_ATOMIC with GFP_KERNELHariprasad Kelam
2019-05-20staging: unisys: use help instead of ---help--- in KconfigMoses Christopher
2019-04-03staging: add missing SPDX lines to Makefile filesGreg Kroah-Hartman
2019-04-03staging: add missing SPDX lines to Kconfig filesGreg Kroah-Hartman
2019-03-20Staging: unisys: Correct malformed SPDX-License-IdentifierWentao Cai
2019-03-20Staging: unisys: visorhba: Replace '--help--' with 'help' in KconfigWentao Cai
2019-03-20Staging: unisys: visorinput: Replace '--help--' with 'help' in KconfigWentao Cai
2019-03-20Staging: unisys: visornic: Replace '--help--' with 'help' in KconfigWentao Cai
2019-02-19staging: visornic: use skb_put_zero() instead of open-coded versionJann Horn
2019-02-04staging: prefix header search paths with $(srctree)/Masahiro Yamada
2018-12-28Merge tag 'staging-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds
2018-12-28Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds
2018-12-18scsi: flip the default on use_clusteringChristoph Hellwig
2018-12-17staging: unisys: convert to DEFINE_SHOW_ATTRIBUTEYangtao Li
2018-12-06net: core: dev: Add extack argument to dev_open()Petr Machata
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook
2018-06-01staging: unisys: visornic: no need to check debugfs return valuesGreg Kroah-Hartman
2018-04-25staging: visornic: fix visornic_xmit()'s return typeLuc Van Oostenryck
2018-02-16staging: unisys: visorinput: use the full 80 characters of the screenDavid Kershner
2018-02-16staging: unisys: visorinput: Fix spacing after open paranthesisDavid Kershner
2018-02-16staging: unisys: visorinput: combine ultrainputreport.h with visorinput.cDavid Kershner
2018-02-16staging: unisys: visorinput: remove duplicate commentsDavid Kershner
2018-02-16staging: unisys: visorinput: Clean up Makefile includesDavid Kershner
2018-02-16staging: unisys: visorinput: remove need for 'depends on FB'Tim Sell
2017-12-08drivers: visorbus: move driver out of stagingDavid Kershner
2017-12-06staging: unisys: move dependencies from UNISYSSPAR to VISORBUSDavid Kershner
2017-12-06staging: unisys: combine visorchannel.h and visorbus.hDavid Kershner
2017-12-06staging: unisys: remove !UML flagDavid Kershner
2017-12-06staging: unisys: fix dependencies with UNISYSSPAR Kconfig flagDavid Kershner
2017-11-28staging: unisys: visorbus: address theoretical int overflowsTim Sell
2017-11-28staging: unisys: Remove redundant license textGreg Kroah-Hartman
2017-11-28staging: unisys: fix up some SPDX tagsGreg Kroah-Hartman
2017-11-28staging: unisys: add SPDX identifiers to all unisys driver filesGreg Kroah-Hartman
2017-11-21treewide: setup_timer() -> timer_setup()Kees Cook
2017-11-13Merge tag 'staging-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds
2017-11-03staging: unisys: don't care about debugfs errorsgregkh@linuxfoundation.org
2017-11-02staging: unisys: Fix incorrect unisys MAINTAINERS patternTom Saeger
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman
2017-10-09Merge 4.14-rc4 into staging-nextGreg Kroah-Hartman
2017-09-28staging: unisys: visornic: clean up parenthesisDavid Kershner
2017-09-28staging: unisys: visorhba: clean up parenthesisDavid Kershner
2017-09-28staging: unisys: visorbus: Fix extraneous parenthesisDavid Kershner
2017-09-28staging: unisys: visorbus: fix comments in vbuschannel.hSameer Wadgaonkar
2017-09-28staging: unisys: include: fix comments and spacing issues in visorbus.hSameer Wadgaonkar
2017-09-28staging: unisys: visorbus: fix line over 80 characters checkpatch warningSameer Wadgaonkar
2017-09-28staging: unisys: visorbus: simplify visorchannel_create_gutsSameer Wadgaonkar
ing */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
// Copyright 2019 The Hugo Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package config

import (
	"github.com/gohugoio/hugo/common/types"
)

// Provider provides the configuration settings for Hugo.
type Provider interface {
	GetString(key string) string
	GetInt(key string) int
	GetBool(key string) bool
	GetStringMap(key string) map[string]interface{}
	GetStringMapString(key string) map[string]string
	GetStringSlice(key string) []string
	Get(key string) interface{}
	Set(key string, value interface{})
	IsSet(key string) bool
}

// GetStringSlicePreserveString returns a string slice from the given config and key.
// It differs from the GetStringSlice method in that if the config value is a string,
// we do not attempt to split it into fields.
func GetStringSlicePreserveString(cfg Provider, key string) []string {
	sd := cfg.Get(key)
	return types.ToStringSlicePreserveString(sd)
}

// SetBaseTestDefaults provides some common config defaults used in tests.
func SetBaseTestDefaults(cfg Provider) {
	cfg.Set("resourceDir", "resources")
	cfg.Set("contentDir", "content")
	cfg.Set("dataDir", "data")
	cfg.Set("i18nDir", "i18n")
	cfg.Set("layoutDir", "layouts")
	cfg.Set("assetDir", "assets")
	cfg.Set("archetypeDir", "archetypes")
	cfg.Set("publishDir", "public")
}